Lobster Programming
Author

Lobster Programming

Sharing insights on technical analysis and exchange, making life better through technology.

150
Articles
0
Likes
440
Views
0
Comments
Recent Articles

Latest from Lobster Programming

100 recent articles max
Lobster Programming
Lobster Programming
May 27, 2025 · Backend Development

Ensuring API Idempotency with Redis and Unique Serial Numbers

This article explains how to achieve API idempotency by having clients send a short‑lived unique serial number, storing it as a Redis key with SETNX and an expiration, and handling the Redis response to process or reject duplicate requests.

API idempotencyRedisUnique Identifier
0 likes · 3 min read
Ensuring API Idempotency with Redis and Unique Serial Numbers
Lobster Programming
Lobster Programming
May 14, 2025 · Backend Development

How to Prevent Duplicate Orders with Anti‑Replay Tokens and Redis

This article explains how to prevent duplicate order submissions during high‑traffic e‑commerce events by using a server‑generated anti‑duplicate token stored in Redis, detailing the token acquisition, validation flow, and handling of repeated requests to ensure inventory integrity and accurate financial reconciliation.

Redisanti-replay-tokenbackend
0 likes · 4 min read
How to Prevent Duplicate Orders with Anti‑Replay Tokens and Redis
Lobster Programming
Lobster Programming
May 6, 2025 · Backend Development

Mastering Seata TCC: A Practical Guide to Distributed Transactions

Learn how Seata's TCC mode addresses distributed transaction challenges when AT mode cannot handle non-relational resources, by detailing its three-phase workflow, handling of common anomalies like empty rollbacks, idempotency, and hanging, and weighing its benefits against complexity.

Compensating TransactionsSeataTCC
0 likes · 7 min read
Mastering Seata TCC: A Practical Guide to Distributed Transactions
Lobster Programming
Lobster Programming
Apr 28, 2025 · Backend Development

How RocketMQ Transactional Messages Ensure Distributed Data Consistency

This article explains RocketMQ's transactional message mechanism, covering half‑message storage, three transaction states, status‑check procedures, key APIs, storage reliability, and the two‑phase commit process that guarantees eventual consistency in distributed systems.

Data ConsistencyMessage QueueRocketMQ
0 likes · 6 min read
How RocketMQ Transactional Messages Ensure Distributed Data Consistency
Lobster Programming
Lobster Programming
Apr 17, 2025 · Backend Development

How Local Message Tables Solve Distributed Transaction Challenges

Using a local message table, developers can break down distributed transactions into local database operations and asynchronous MQ messages, ensuring eventual consistency, simplifying implementation, and handling retries, while balancing advantages like simplicity and compatibility against drawbacks such as added maintenance and potential queue dependencies.

Local Message TableMessage Queuebackend architecture
0 likes · 5 min read
How Local Message Tables Solve Distributed Transaction Challenges
Lobster Programming
Lobster Programming
Apr 14, 2025 · Backend Development

Understanding RabbitMQ Architecture: Components, Exchanges, and Queues

RabbitMQ, an Erlang‑based open‑source message broker implementing AMQP, uses producers, consumers, exchanges, queues, virtual hosts, connections, and channels to enable scalable, reliable asynchronous communication, with various exchange types and binding mechanisms that organize message routing in microservice architectures.

AMQPRabbitMQmicroservices
0 likes · 7 min read
Understanding RabbitMQ Architecture: Components, Exchanges, and Queues