Author: Mr.ParottaSalna
-
JUST : A Simple command Runner
As a developer, i usually want to run some set of commands to execute/run the application. Like building and running docker container or setting some environment variables before running application or setting up the development environment like activating envs, running db’s, opening vs_code like that.We can solve these using, alias command; but i need something…
-
How to cancel an HTTP Request ?
While testing functionalities in an web application, we usually do some actions which triggers the API request. What to do if i triggered an api which should not have been done in first place. How can i cancel the sent request ? How can i rollback ? In the frontend, we have an abort() call,…
-
Benchmarking UUID4 vs ULID for DB indexing
In DB, for unique identifiers we usually use UUID (Universally Unique Identifier) and ULID (Universally Unique Lexicographically Sortable Identifier). There is some debate going on between ULID and UUID on db performance. Today we are going to experiment this and will provide the facts. TL;DR CODE:https://github.com/syedjaferk/benchmarking_uuid_vs_ulid There was no big difference between ULID and UUID…
-
Redis : Cache Aside Pattern
Its an Application level caching, where the application checks whether the data is present in the cache (In our case redis). If data is present it returns the data. Else checks from the database and stores it in Cache and then returns the data to client. Steps: Cache Hit: If the requested data is present…
-
Redis : Read Through Cache
Its an Application level caching, where the application reads the data from cache. If the data not present in the cache it will read from database and updates the cache and sends the result to the application. Steps: Implementation Github: https://github.com/syedjaferk/redis-cache We are going to create a mock todo application. Let’s spin redis and mongo…