Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hemera in AWS Lambda #4

Closed
blanchma opened this issue Dec 2, 2017 · 2 comments
Closed

Hemera in AWS Lambda #4

blanchma opened this issue Dec 2, 2017 · 2 comments

Comments

@blanchma
Copy link

blanchma commented Dec 2, 2017

Is possible to implement a Hemera microservice inside an AWS Lambda?

@StarpTech
Copy link
Member

Hi @blanchma it should work and the nats connection can be reused on further requests but have in mind that as soon as a lambda container get cold or you deploy a change the container is reinitialized. Here is an overview of best practices. It's really important to deploy your NATS cluster inside a VPC to ensure reliability and security.

Creates a base NATS server, VPC and security groups.
https://github.com/nats-io/deploy/tree/master/server/aws

Here you can see an example of how it looks like to reuse a db connection with pq
http://blog.rowanudell.com/database-connections-in-lambda/

@StarpTech
Copy link
Member

Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants