architecture
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 …
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 …
nginx : Its Multithreaded but uses multiple processes?
Apache uses multiple threads to provide each request with it’s own thread of execution. This is necessary to avoid blocking when using synchronous I/O. Nginx uses only asynchronous I/O, which makes blocking a non-issue. The only reason nginx uses multiple processes, is to make full use of multi-core, multi-CPU and hyper-threading systems. Even with SMP …
CRUD in a use-case diagram?
Out of these, I would say #3 is actually the worst, because “CRUD” on its own is not a use case at all; you always CRUD something. Don’t confuse use case <<extend>> with class inheritance. Option #2 is not very good either, because running through a “manage user” use case does not mean you perform …
What is a microservice architecture? [closed]
Microservices in my own, hopefully simple terms Monoliths Traditionally web applications are big. You write one piece of software that runs on a server and answers requests in form of HTML, XML or JSON. If you want your web application to do something new, you add that functionality to the existing application. Such big systems …
How do you use transactions in the Clean Architecture?
I put the transaction on the controllers. The controller knows about the larger framework since it probably has at least metadata like annotations of the framework. As to the unit of work, it’s a good idea. You can have each use case start a transaction. Internally the unit of work either starts the actual transaction …
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 …
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 …