How would I implement separate databases for reading and writing operations?

I’m not a specialist but the read/write master database and read-only slaves pattern is a “common” pattern, especially for big applications doing mostly read accesses or data warehouses: it allows to scale (you add more read-only slaves if required) it allows to tune the databases differently (for either efficient reads or efficient writes) What would …

Read more

How to structure an enterprise MVC app, and where does Business Logic go?

In my apps, I usually create a “Core” project separate from the web project. Core project contains: Business objects, such as entities and such Data access Anything that is not specifically designed for web Web project contains: Controllers, which route requests from the UI to the core logic Views, which focus on presenting data in …

Read more

Questions about VIPER – Clean Architecture

1. May the Presenter query information from the view To answer this to your satisfaction, we need more details about the particular case. Why can’t the view provide more context information directly upon callback? I suggest you pass the Presenter a Command object so the Presenter doesn’t have to know what to do in which …

Read more

Visualizing your code’s architecture [closed]

I am afraid that there is no perfect tool for comprehensive visualizing your program architecture and its control flow, you should keep them in your head and make your software architecture clean, uniform and predictable. However there are some tools that can help you. In Pycharm you can: view structure and hierarchy of the source …

Read more