how to create a serverless microservice with Node and SQLite on AWS

I’m working on a big project involving lots of microservices, so I’ve taken the occasion to play with serverless and different tech stacks.

Java (Jersey framework) resulted very heavy and adding lots of weight, so I’ve abandoned it in favour of Node.js. Express.js framework and its SQLITE3 libs guarantee a smaller package and faster cold-start.

Something annoying of serverless is not being able to SSH into the server and watch the logs. I had to use the AWS control panel, and realised that is better to dockerise and replicate the same env as the remote one, to prevent environment-specific bug. The serverless app is extracted from a ZIP, so it has to be pre-built with exactly the same underlying stack.

Click here to see the repository

Serverless tutorial to create Node.Js and SQLite API – medium.com

or check the repository on github

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s