Kafka vs RabitMQKafka: distributed streaming platform RabbitMQ: message broker Different Architecture Model: push & pull Storage: rabbitmq delete after ack, kafka stored on disk, and durable ordering: rabbitmq harderMar 24, 2026·1 min read
Snowflake vs UUID vs UUIDv7(2023)PropertySnowflakeUUID v4UUIDv7Size64-bit int128-bit128-bitFormatInteger (e.g. 1541815603606036480)Hex string (e.g. 550e8400-e29b-...)Hex string (e.g. 018e-...)Time-sortable✅ Yes (ms precision)❌ No✅ YeFeb 22, 2026·1 min read
Diff between @Bean & @ComponentBoth @Bean and @Component are ways to tell spring ioc container “Hey, i want u to manage these object for me”. @Component is a class-level annotation. Its basically telling ioc container “during your startup scan, when u meet this class, please initi...Feb 4, 2026·1 min read
navigator.sendBeacon VS fetch + keepaliveWhen try to send some requests to the backend whenever frontend user ‘leave’ the page, there are two approaches navigator.sendBeacon or fetch with keepalive set to true. So what is the tradeoff? Advantages of navigator.sendBeacon: Specifically desig...Feb 10, 2025·2 min read
--save VS --save-devWhen installing npm packages, there are two options provided: —save (-S) —save-dev (-D) So what is the diff? npm install <package> —save Is equivalent to npm install <package>, which is the default behavior. It install the package under node_mo...Jan 21, 2025·1 min read
Top level Objects in browserwindow window.innerHeight window.innerWidth window.navigator window.location url info window.history window.localStorage window.sessionStorage methods: window.alert() window.setTimeout() window.open() open a new tab by default window....Jan 10, 2025·1 min read
./public or ./src/assets ?There are two place to put resources that would be later imported into a react project, src/assets/ folder and public/ folder. So what is the diff? Build Processing src/assets: Files will be processed by build tools (like webpack, Vite) Images ma...Jan 10, 2025·2 min read