Situation-oriented databases: polyglot persistence based on REST microservices
The article discusses the new features provided in situational-oriented databases (SODB) for the implementation of microservice architecture. SODB - a project integrator of heterogeneous data within the approach polyglot persistence on the base of the information processor, built-managed situational model. Access to heterogeneous data is organized in the SODB based on the concept of virtual documents that are displayed on heterogeneous physical data. The article discusses the microservice architecture based on SODB, a modern approach that provides better scalability and modifiability of web applications based on HTTP requests. The task is set to process HTTP requests by the microservice within the framework of the general concept of virtual documents. To solve the problem, a new type of virtual document has been introduced, which is displayed on an HTTP request, which facilitates the microservice, on the one hand, access to the request properties and the data attached to it, and on the other, the formation of an HTTP response. The article discusses how to process an HTTP request using an example of a typical situational model of a microservice that maintains a relational database table based on a data source - an external web service. The structure of the situational model that processes and forms the response depending on the type of request and the situations encountered is examined in detail. An example of the practical implementation of a complex of microservices based on SODB for monitoring student views of educational videos on YouTube is given.