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