go-architecture | Code snippets for codeguida article | Runtime Evironment library
kandi X-RAY | go-architecture Summary
kandi X-RAY | go-architecture Summary
Code snippets for codeguida article
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Start starts the server
- NewRouter returns a new Router
- NewServer returns a new Server instance .
- NewUserHandler creates a UserHandler .
- Runs the server
- NewPostHandler creates a new PostHandler
- NewUserRepository creates a new UserRepository
- NewUserService returns a new UserService
- NewPostService returns a new PostService .
- NewPostRepository creates a PostRepository
go-architecture Key Features
go-architecture Examples and Code Snippets
Community Discussions
Trending Discussions on go-architecture
QUESTION
Our architecture is a FAAS approach, where our entire backend is on Lambdas. The persistence layer is a managed Cloud Mongo Cluster, so called Atlas. Lambdas in the VPC talk to mongo cluster using a peered VPC connection.
I need a VPC enabled Lambda, because Lambda talks to mongo cluster using the VPC Peering connection. I need a NAT gateway because resources inside Lambda has to talk with external internet resources. Here is my VPC-Lambda-Mongo architecture:
So my questions are:
- Security and Safety is very important, Do you suggest any better architecture than this? I would be happy to hear it.
ANSWER
Answered 2017-Jun-22 at 02:38- If Security and Safety is very important, why are you even thinking about making the subnet public? You can save few bucks, but any accidental opening of inbound ports in the security group is a risk.
- You can use a NAT instance instead of NAT gateway. And if your outbound traffic through NAT is sporadic then go for
t2.micro
NAT ($9/month) ort2.nano
NAT ($5/month) - Most important: Running your Lambdas in public subnet may not be PCI/SOC2 compliant
- I am not sure if Lambdas in public subnet can access internet directly. If it is possible, then what is the source IP for the outgoing packet?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install go-architecture
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page