One of the main strengths of serverless and AWS Lambda is that, from a developer perspective, your focus is mostly shifted toward implementing business logic. Anyway, when you are writing a handler, you still have to deal with some common technical concerns outside business logic, like input parsing and validation, output serialization, error handling, etc. …
Yet another way to manage db migrations in node.js project
Using Sequelize with node.js project is great, which provides all in one pack functionalities, including migrations, ORMs, etc. Sometimes, we only need migrations without ORMs. ex: using direct GraphQL libraries to make interface. db-migrateĀ isĀ database migration framework for node.js. Usage is simple, install via npm, similar to sequelize.
How to check connection status of websocket?
In web application development, you’d face a moment that need to check websocket connection status.For example, you’d have a situation that your web backend needs to check if users are active in the browser. It’s as very simple as you just need to check websocket property WebSocket.readyState. It has 4 possible values; “CONNECTING”, “OPEN”, “CLOSING”, “CLOSE”. …