Best practices
For writing microservices, we recommend:
- Refer to the API best practices for making API calls here. These all apply to microservices as well.
 - Use a code editor with language extensions installed (like VS Code).
 - Use the debugger built into your code editor to confirm what is happening during execution.
 - Leave detailed comments in your code.
 - Plan out what the service will do step by step before writing code.
 - Read up on general JavaScript best practices before you start.
 - Once your code is confirmed to work, go back over it and look for ways you can simplify it and remove any code left over from earlier iterations.
 - Write tests for each function using Jest.
 - If you have experience with code, we also recommend using Typescript for microservices.