Components of the micro service
Components of a micro service A micro service is no different from a service in a service orientated architecture. It is a standalone application with an API that is defined. Each API call performs functionality such as updating the database, retrieving data from the database, creating files, sending messages etc. In our application we will be supporting a REST API and a MessageQ API. The REST API uses the HTTP protocol. This means our application must have a built in web server that can process HTTP messages and output JSON formatted data. All synchronous requests will be sent using the REST API. Our API must use HTTP status codes correctly, parse the header records correctly, implement security with bearer tokens (explained in a later blog post). Every service that uses our API must be able to process successful and unsuccessful response codes gracefully. The MessageQ API uses a queue name and a message with an ID and a payload. All messages will be sent ...