Posts

Concurrency in Software Architecture

Concurrency is decoupling strategy. It helps us decouple what gets done from when it get done. Concurrency pattern is implemented to support multiple executions simultaneously to make use of all the CPU cores to complete tasks quickly and reduce wait time for every task. Process called Thread which perform multiple executions and lead to achieve concurrency pattern. Threads share resources with each other and execute tasks quickly and efficiently. Concurrency always improves performance It can improve performance sometimes but only where there is a lot of wait time that can be shared between multiple threads or processors. Design does not change when writing concurrency program due to decoupling butt it does varies based on single threaded system. Understanding concurrency issues are not important when working with a container such as a Web or EJB container. Concurrency incurs some overhead, both in performance as well as writing additional code. Correct concurrency is complex, even fo

System Design Interviews 2022

System design interviews are the most difficult to tackle among all the technical interviews especially in big technology companies like " MAANG ". System design round is more focused on the infrastructure knowledge and over all knowledge of candidate regarding his experience working on projects if candidate focused or keen to have high level idea of the overall software project which was created. System design questions are intimidating, and no certain pattern to follow. The questions may have bigger scope and vague as processes are open-ended without a standard or correct answer. In order to approach system design questions would be understanding the requirements and narrow it down to the technology stack interviewer is looking for. If I want to build a system which will provide support to millions of users requests and gradually scale it up to serve based on the users traffic or more users, focus in this scenario would be more towards web application, low latency, high thr