1,305 questions
Best practices
0
votes
0
replies
162
views
Multi-provider RPC failover in Rust - circuit breaker vs retry-only for blockchain nodes?
I'm building a production RPC transport layer in Rust that connects to
multiple blockchain RPC providers (Alchemy, Infura, QuickNode, public nodes)
with automatic failover.
The challenge: not all ...
Best practices
0
votes
2
replies
121
views
Rebalancing Traffic In Leaderless Distributed Architecture
Using Go I am creating an in-memory distributed store similar to Cassandra.
I have concept of storage_node with get_by_key and put_key_value. When a new node starts it starts to gossip with a seed ...
-1
votes
1
answer
146
views
Should Post and PostLike be separate microservices, and how to validate entity existence across services?
I'm designing a microservices architecture for a social media–like system and need guidance on service boundaries and cross-service validation.
Current Design
I have two separate microservices:
Post ...
Best practices
0
votes
0
replies
60
views
Architectural pattern for binding user authorization to demonstrated comprehension before system execution?
In many distributed systems, user authorization is treated as sufficient proof of intent.
Examples:
Clicking “Approve”
Signing digitally
Submitting a confirmation request
Triggering a smart contract ...
0
votes
0
answers
32
views
Handling log inconsistencies in Raft: how should a follower reconcile conflicting entries?
I'm trying to learn Raft, but some edge cases I find hard to understand.
Here’s an example scenario:
The leader has the following log:
1: A, 2: B, 3: C
A new entry arrives: 4: D. The leader will ...
Advice
0
votes
1
replies
66
views
What is the chance of losing a redis pub/sub message?
I understand that message loss in Redis Pub/Sub is possible and is considered normal behavior. The probability is low, but not zero.
What I’m trying to understand is how often this can realistically ...
Advice
0
votes
2
replies
90
views
How to make devices discover each other using WIFI
What's the best way to allow programs to discover each other on the network?
Let's say we are writing a system that tracks the usage of computers over the network.
We have an agent program that sends ...
1
vote
1
answer
65
views
How do I redesign a broken multi-service system where the entry point and child services are out of sync?
I recently joined a startup that has a pretty messy backend setup, and I’ve been assigned to sort it out.
Here’s the situation:
There’s one main entry point (a federation/onboarding service) that’s ...
1
vote
1
answer
245
views
Should I store Stripe Subscription details in local DB or query Stripes API to determine if a user is subscribed?
I have the following requirement.
A website (lets call it Website A) where I sell subscription plans for my SaaS
Payments are handled with Stripe
I am using an authentication service (Auth0) so users ...
0
votes
0
answers
80
views
ADKG-based threshold ECDSA signature recovers different address per transaction—how to compute aggregate `r` and signature parameters?
Background
I’m implementing Asynchronous Distributed Key Generation (ADKG) over secp256k1 so that N nodes collectively hold a threshold private key. After DKG each node has a secret share. To sign an ...
0
votes
0
answers
48
views
gRPC: HTTP-level resilience handler (retries)?
Should gRPC clients implement an HTTP-level resilience handler? Or only rely on the gRPC-level RetryPolicy? Why/why not?
For example, if the server responds with a 5xx status code (unexpected but ...
0
votes
0
answers
52
views
Is there a problem having min.insync.replicas < half the RF?
Many examples of Kafka topic configuration have RF = 3, min.insync.replicas = 2.
In the case of a cluster of 5 brokers, if we use RF = 5, should min.insync.replicas = 3? That seems "natural" ...
0
votes
1
answer
154
views
How do I limit the count of rows in a result set in Postgres without unnecessary locking?
This question is inspired by a 'general admission' variant of the common 'event ticketing' System Design interview question. Critically in this version, the user does not select a seat - they only say ...
0
votes
1
answer
75
views
is last write wins redundant for immutable keys?
In the book Designing Data-Intensive Applications > chapter-5 > Leaderless replication > Detecting Concurrent Writes, below is what Author says while talking about Last write wins (LWW)
The ...
0
votes
1
answer
96
views
Apache JMeter Master Slave Setup on Azure VM
I am new to JMeter Distributed Environment setup. I dont have any knowledge on how to setup the master slave configuration. I just have the information that we have a Master VM and we can spin up ...