Version 0.2
Here are some applications written in Swift / Vapor that will make up a generalized (stub) environment for a micro services system.
Right now there is a dummy Site generator application, a REST based datafetching Backend application and a Session application. Later there will be more services added, like a Password quality application, an autorization/login Application, a Geo coding application and probably several more.
The communication between the services are all done with the http protocol.
The Site process is a HTML generator using Leaf, that uses the Backend Application API for data retrieval.
A Backend Application that uses FrontBase SQL92 server ( http://frontbase.com ) as its datastore. This is easy changable to SQLite or some other Fluent-based data store. It has the systems main Rest API for client access.
Then there is a Session application that is responsible for handling the sessions. It is supposed to be used as a singeton instance process . Sessions are short lived (configurable) and database stored. This application has its own memory based local datastore but also one using FrontBase for persistance. Database storage is handled asynchronous for faster access to this service.
Since this is version 0.2, it's not yet an integrated working solution. The FrontBase database adaptor/frameworks are also not public open source, but will be later. Those frameworks are now working in our private developer environment with Vapor 3.0 but we are waiting for Vapor 4.0 before we release it open sourced. DM me for more information.