Design document
Chat History
Goal
Migrating chats and messages stored on client’s local storage to server side solution.
Method
Chat overview data stored in a relational db for its relational nature and future for collaboration. Messages stored in elastical db for search and analytic capabilities.
F**K Ups
Not enough attention was dedicated to the transition from legacy to new architecture on the client side.
Solution
Following a facadal pattern we adapt the legacy and new services to implement one contract that instanciates in runtime.