Posts

Showing posts from May, 2021

Angular :: Reactive Pattern - Plain RxJs & State Management

Reactive style with plain RxJs - Patterns, Anti-Patterns, Lightweight State Management Stateless Observable based services Consuming Observable based services using Angular async Pipe Avoiding duplicate HTTP request with the RxJS shareReply operator Angular view Layer Pattern - Smart/Presentational Components Data modification in Reactive style (Stateless application)

Microservices - Software Architecture - Pattern & Techniques

 Advantages Low coupling Improves modularity Make use of parallel development Make use of scalability Drawbacks Infrastructure cost are usually higher Integration testing is bit complex Service management and deployment as single unit Nano service anti pattern (service is too fine grain) Use Cases: 1.] A bank is looking to develop a system for its new web platform that will be a long term project , and will therefore need to be scalable to support future growth Ans] Yes, this would be a suitable application of microservices architecture since it's a long term project, and a well-designed microservices-based system will support good scalability. 2.] An e-commerce website requires a small application that will be used for a short period to support a temporary promotion scheme that they will have.  Ans] This scenario is contrary to that of the previous question, since the application is not complex and will only be used for a short term it can be developed in less development int...

Employee - Leaves - Department :: SQL Queries

SQL Queries for learning: This application is used to keep track of information about employees of a company. It also stores the information about departments and leaves taken by employees. You are required to create tables (as shown below) and insert data into each of the table. Apart from giving you an idea about how to create tables with constraints, it also enables you to understand how to create queries, pl/sql programs, stored procedures and functions and database triggers. However, note, this sample collection of tables is only for learning purpose. Required Tables The following are the set of tables to be created to store the required information. Table Name Meaning DEPT Stores the details of departments of the company. EMPLOYEE Stores information about all the employees of the company. LEAVES Stores information about types of leaves available EMP_LEAVES Stores information about leaves taken by the employees. Structure of Tables The following is the structure of each of the req...