System Design | Implementation Rule Book | CheatSheet

By Prithvi Atal, Engineer, Driving High-Performance Solutions

Tuesday, February 18, 2025

Sequence Diagram : Template Wizard

›
Format: https://sequencediagram.org/ title Some Design Flow Application->Integration-System: Hydration \n Load(applicatio...
Wednesday, August 28, 2024

Unlocking Event-Driven Architectures with AWS EventBridge: Use Cases and Benefits

›
  Introduction In today’s fast-paced digital landscape, designing systems that are responsive, scalable, and flexible is more critical than ...
Tuesday, May 14, 2024

Localstack : Test our AWS services locally

›
Localstack Installation:  download localstack:  https://app.localstack.cloud/download? # configure, optional aws configure set aws_access_ke...
Sunday, February 11, 2024

Comprehensive steps to Fixing 'Too Many File Descriptors Open' Errors in Linux

›
  Introduction The "Too many file descriptors open" error in Linux often signifies that your system has exceeded its limit on op...
Saturday, February 10, 2024

Feeding information via MDC

›
Correlation ID can be very useful for Logging in Microservices. We can benefit from Mapped Diagnostic Context or MDC manages contextual info...
Tuesday, February 6, 2024

Redis Cache cookbook

›
-AWS Elastic cache flavor-> Redis  -Each url treated as key and redis store the result -This has fix lenngth of keys, and use LRU to remo...
Friday, August 11, 2023

Unix : Most relevant commands

›
netstat -tonp | grep CLOSE_WAIT   //CLOSE_WAIT means your program is still running, and hasn't closed the socket  netstat -p  // connect...
Sunday, January 8, 2023

Memory Issue: Step by step troubleshooting

›
 Quite often your application is going out of memory. Here is what you need to check the following: Review the memory configuration 1. -Xmx ...
Friday, December 30, 2022

Java Variable Naming best practices

›
Variable Ordering in a class. Constant first then private variables public> private static> non-static final> non-final injected...
Thursday, December 29, 2022

JSON to Java Cheat Notes

›
In this article we will talk about exposing java to Json serialization and how to instrument them   @JsonProperty( "fieldName" ) /...
Wednesday, December 14, 2022

Improving PostgreSQL Performance

›
 Optimize and Improve PostgreSQL Performance with VACUUM, ANALYZE, and REINDEX utility. VACUUM: -Reclaims storage occupied by dead tuples wi...
Sunday, December 4, 2022

SQL Identify Similar Records With More Info

›
 In this article we would be fetching similar records with lookup details. Consider a retailer needs to know similar order placed along with...
Wednesday, September 14, 2022

Https setup in Nginx

›
1.  Install the Nginx server and the required packages. apt-get update apt-get install nginx openssl 2. Create a private key and the website...
Tuesday, September 13, 2022

nGinx rewrite rules configuration

›
 The rewrite Directive rewrite regex URL [flag]; eg: rewrite ^ $request_uri; server {     # ...     rewrite ^(/download/.*)/media/(\w+)\.?.*...

Setting up secure custom domain in CloudFront

›
 ->Obtain an SSL Certificate within Certificate Manager.  Please note that this allows us to serve your content over https and is a servi...
Wednesday, August 31, 2022

How to decide the best database connection pooling library

›
What is the flow of  database connections in application?  Application asks the data source for a database connection.  Datasource uses the ...
Monday, August 15, 2022

Registering Angular Components

›
Registering a module angular . module ( 'myApp' , []) . controller ( 'MyController' , [ 'myService' , function ...
Sunday, June 26, 2022

Thumb-rule for instance Type selection on AWS

›
Instance Type/Series : Use cases T3/T4 [ Free trial]- Micro service, dev environment,,low CPU utilization and occasional periods for high CP...
Saturday, May 21, 2022

Database DevOps Toools

›
 For versioning and organizing your database changes there are vwaios devops tools available in market.  The most known ones are  Liquibase ...
Thursday, May 12, 2022

Open-source Library Rule Book

›
Opens-source Library : When to use What ? Chatbot - Apache Tensor Avoid DB Load: ehcache, Elastic Search Intelligence, running queries from ...
Friday, April 22, 2022

Securing Life With Refresh token

›
OAuth 2.0 uses Access Tokens and Refresh Tokens to secure access to applications and resources. Here is the flow: Obtaining OAuth 2.0 access...
Thursday, March 17, 2022

Troubleshooting Elastic Search Cluster

›
Problem: ES Update fails due to Index becomes readOnly Root cause: Elasticsearch automatically sets "read_only_allow_delete": ...
Monday, February 21, 2022

Code that speaks up

›
 Writing code which talks is something the developer would love to have it. In this blog, we will talk about some of the mechanism which mak...
Monday, February 7, 2022

Reliable Message Delivery with RabbitMQ

›
 In RabbitMQ, data safety is being handled by the below two mechanism:  I. Consumer Acknowledgements II.  Publisher confirms Consumer Acknow...
Friday, February 4, 2022

Docker cookbook

›
  docker --version   docker pull <image_name>   docker images  docker run -it -d <image_name>   docker ps  docker ps -a  docker ...
Thursday, February 3, 2022

›
 Runnable JDK 1.0  new Thread( () -> System.out.println("Runnable") ).start() Callbale Java 5 Callable callable = Executors.cal...
Monday, January 24, 2022

Locking : Best Practices

›
  Read Lock: Read lock allows multiple thread to acquire lock in read method when all the synchronizing threads are using only the read lock...
Friday, January 21, 2022

Storage Solutions EBS vs EFS vs S3

›
 AmazonEBS :   High-availability block-level storage volumes for Amazon Elastic Compute Cloud (EC2) instances.  - It is paired with an EC2 i...
Thursday, January 20, 2022

How to make Cross Domain Access

›
You can not allow xhr call to cross domain. Otherwise it would be very risky to allow third party script in your domain code. Here we will g...
Wednesday, January 19, 2022

Designing a Resilient Architecture

›
 Designing a resilient architecture can comprise of following paradigm: I. Does your application has retrial mechanism? II. Is there any mec...

MnagedBean using JMX API

›
 JMX specification supports the following types of Bean: Standard MBeans Dynamic MBeans Open MBeans Model MBeans MXBeans  Managing Resource ...

Controlling Spring Behaviour

›
While developing Spring based application there are instances where we would like to get a control of the spring beans. It comes very handy ...
›
Home
View web version

About Me

Prithvi Atal
View my complete profile
Powered by Blogger.