Skip to content

Widhian Bramantya

coding is an art form

Menu
  • About Me
Menu
rabbitmq

Dead Letter Queues in RabbitMQ: How to Handle Failed Messages

Posted on September 8, 2025September 8, 2025 by admin

In messaging systems, not every message can be processed successfully. Some messages may be invalid, expired, or cause errors in consumers. Instead of losing these messages, RabbitMQ provides a feature called the Dead Letter Queue (DLQ). DLQs allow you to capture, inspect, and handle failed messages safely. By default, any message that is rejected with…

Pages: 1 2
Read more
rabbitmq

Understanding RabbitMQ Exchange Types with Go: Default, Direct, Fanout, and Topic

Posted on September 8, 2025September 8, 2025 by admin

RabbitMQ is one of the most popular message brokers for building distributed systems. It allows applications to communicate asynchronously by sending and receiving messages through queues. At the heart of RabbitMQ is the concept of an exchange, which decides how messages flow from producers (publishers) to consumers. This article explains RabbitMQ’s most common exchange types…

Pages: 1 2 3
Read more
rabbitmq

Reliable Messaging with RabbitMQ: Acknowledgments, Durability, and Persistence

Posted on September 8, 2025September 8, 2025 by admin

One of the main reasons people use RabbitMQ is reliability. In many systems, losing a message is not acceptable. Imagine if an order is placed in an e-commerce system but disappears before the payment service sees it, that would be a big problem. RabbitMQ offers three important features to ensure reliable messaging: Acknowledgments, Durability, and…

Pages: 1 2 3
Read more
nats

Ensuring Message Ordering in NATS: A Kafka-like Approach

Posted on September 6, 2025September 6, 2025 by admin

In distributed systems, maintaining message ordering is crucial for ensuring data consistency and correctness. While Apache Kafka is well-known for its strong ordering guarantees, NATS JetStream offers a powerful alternative with the right architectural approach. This article explores how to implement Kafka-like message ordering in NATS using partitioned consumers and lease-based coordination.

Pages: 1 2 3 4
Read more
nats

Scalability and Reliability in NATS

Posted on September 6, 2025September 6, 2025 by admin

In the previous articles, we explored messaging patterns (Pub/Sub, Request–Reply, Queue Groups) and storage features (KV and Object Store) in NATS. Now let’s look at how NATS handles scalability and reliability, two critical factors when running systems in production.

Pages: 1 2
Read more
nats

Object Store in NATS: Storing Files and Blobs

Posted on September 6, 2025September 6, 2025 by admin

In the last article, we talked about the NATS Key-Value Store (KV), which is great for lightweight configuration and state management. But what if you need to store something larger, like a file, image, or binary data? For that, NATS provides the Object Store, also built on top of JetStream.

Pages: 1 2
Read more
nats

Key-Value Store in NATS: Simple State Management

Posted on September 6, 2025September 6, 2025 by admin

So far, we’ve looked at different messaging patterns in NATS like Publish–Subscribe, Request–Reply, and Queue Groups. Those patterns are great for communication, but sometimes you need a way to store small pieces of state that services can read, update, or watch for changes. NATS provides this through its Key-Value Store (KV), built on top of…

Pages: 1 2
Read more
nats

Queue Groups in NATS: Load Balancing for Subscribers

Posted on September 6, 2025September 6, 2025 by admin

In the previous articles, we looked at Publish–Subscribe and Request–Reply patterns in NATS. Pub/Sub is great for broadcasting messages to many subscribers, while Request–Reply is perfect for one-to-one communication. But what if you want to distribute messages across a group of workers so that only one of them processes each message? This is where Queue…

Pages: 1 2
Read more
nats

Request–Reply in NATS: One-to-One Messaging

Posted on September 6, 2025September 6, 2025 by admin

In the previous article, I explained the Publish–Subscribe pattern in NATS, which is great for broadcasting messages to many subscribers. But sometimes you need a different style: you want to send a message and get a response back. This is where the Request–Reply pattern comes in.

Pages: 1 2
Read more
nats

Publish–Subscribe in NATS: Simple and Powerful Messaging

Posted on September 6, 2025September 6, 2025 by admin

In the previous article, I wrote an overview of NATS and NATS JetStream. Before we go deeper into advanced topics like scalability and reliability, it’s important to understand the most common messaging pattern in NATS: Publish–Subscribe. What is Publish–Subscribe? Publish–Subscribe (or pub/sub) is a way of sending messages where: It’s a decoupled system: the publisher…

Pages: 1 2
Read more
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Linkedin

Widhian Bramantya

Recent Posts

  • Smart Automation in PostgreSQL: Managing Time-Based Data with pg_partman and pg_cron
  • Understanding PostgreSQL WAL, Slot, Publication, LSN, and Replication Lag
  • PostgreSQL Write-Ahead Log (WAL): Durability, Performance Tuning, and Recovery Explained
  • PostgreSQL Replication Deep Dive: From High Availability to Multi-Master Clusters
  • Finding Nearby Merchants in a Ride-Hailing App Using Elasticsearch Polygon Search
  • Advanced Text Search in Elasticsearch: N-Gram, Reverse, Fuzzy, and Search-as-you-type
  • Understanding and Customizing Analyzers in Elasticsearch
  • Log Management at Scale: Integrating Elasticsearch with Beats, Logstash, and Kibana
  • Index Lifecycle Management (ILM) in Elasticsearch: Automatic Data Control Made Simple
  • Blue-Green Deployment in Elasticsearch: Safe Reindexing and Zero-Downtime Upgrades
  • Maintaining Super Large Datasets in Elasticsearch
  • Elasticsearch Best Practices for Beginners
  • Implementing the Outbox Pattern with Debezium
  • Production-Grade Debezium Connector with Kafka (Postgres Outbox Example – E-Commerce Orders)
  • Connecting Debezium with Kafka for Real-Time Streaming
  • Debezium Architecture – How It Works and Core Components
  • What is Debezium? – An Introduction to Change Data Capture
  • Offset Management and Consumer Groups in Kafka
  • Partitions, Replication, and Fault Tolerance in Kafka
  • Delivery Semantics in Kafka: At Most Once, At Least Once, Exactly Once

Recent Comments

No comments to show.

Archives

  • October 2025
  • September 2025
  • August 2025
  • November 2021
  • October 2021
  • August 2021
  • July 2021
  • June 2021
  • March 2021
  • January 2021

Categories

  • Debezium
  • Devops
  • ElasticSearch
  • Golang
  • Kafka
  • Lua
  • NATS
  • PostgreSQL
  • Programming
  • RabbitMQ
  • Redis
  • VPC
© 2026 Widhian Bramantya | Powered by Minimalist Blog WordPress Theme