Kafka vs RabitMQ
Kafka: distributed streaming platform RabbitMQ: message broker Different Architecture Model: push & pull Storage: rabbitmq delete after ack, kafka stored on disk, and durable ordering: rabbitmq harder
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✅ Ye
Both @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...
When 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...
When 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...
window 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....
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...