Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
85 views

I’m trying to build my own Spring Authorization Server (for learning purposes and possibly to use across multiple projects in the future). I’m already familiar with Spring Security and resource server ...
Gaurav Kumar's user avatar
0 votes
0 answers
80 views

My service is writing to clickhouse. I want to implement a cache which will help me with batching data for CH + it will store the data when CH is unavailable so i dont lose the data. I chose redis ...
George's user avatar
  • 628
0 votes
0 answers
28 views

I have a project for the Embedded System Design course where I need to model a fault-tolerant sensor reading mechanism. I have reduce the system to only the important parts. The system relies on error ...
Brenno Ferreira's user avatar
0 votes
1 answer
78 views

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 ...
asantas93's user avatar
0 votes
1 answer
60 views

I have two entities: User and Store. Users log in with email/password. Stores access a POS app using a 6-digit token. Should I: Create separate authentication flows (Users: email/password, Stores: ...
Moncef Moussaoui's user avatar
1 vote
1 answer
56 views

We have an application that serves as a configuration repository, storing data in a relational database. Whenever a user changes a configuration item, it is persisted to the database and our goal is ...
Giorgi Gviani's user avatar
0 votes
0 answers
45 views

best to avoid single point of failure in system design in case of API gateway as from controller. In real time companies how, they are handling SPOF with API gateways. In below image API gate way down ...
Ranjith Kumar's user avatar
2 votes
1 answer
103 views

Some code: selectOperation.cpp #include "SelectOperation.h" SelectOperation::SelectOperation(const std::string& tableName) { sql_statement = "SELECT * FROM " + tableName; ...
user284985's user avatar
0 votes
2 answers
282 views

I'm building a website that lets users add new items in their profiles. Users can also do the same using Discord bot's commands. In both cases the Discord bot sends a message New item added by @user ...
parsecer's user avatar
  • 5,239
2 votes
1 answer
102 views

I'm building a system that consists of multiple microservices, databases, a message broker, and a file storage system that primarily stores photos. In my setup, I'm using MinIO as my file storage ...
Dmytro Kotenko's user avatar
0 votes
1 answer
87 views

Suppose I am designing a mobile application that requires both real-time collaboration and offline support. Instead of using a hybrid approach (directly interacting with the server when online and ...
Android Developer's user avatar
1 vote
2 answers
46 views

I have multiple microservices in my solution, let's call them salary processing, cards, kyc docs, and I need to enforce compliance so that if a kyc doc has expired, I block the card, and if salary ...
mahmoudmh's user avatar
-1 votes
1 answer
41 views

Currently I'm working on FastAPI endpoints in Python which basically handle two types of entities: /run/entityA /run/entityB Now based on the type of entity, some of the arguments change but a lot of ...
pip's user avatar
  • 37
1 vote
0 answers
46 views

I have a service file foo.service that is configured to auto-start after a target init_done.target. [Unit] After=init_done.target ... [Install] WantedBy=multi-user.arget If I run systemctl stop foo....
Ken Lin's user avatar
  • 1,035
0 votes
1 answer
63 views

I'm new to microservices and system design, and I'm trying to understand the role of the API Gateway in authentication and authorization. I've come across two different approaches, each with its pros ...
Prasad Parab's user avatar
0 votes
0 answers
110 views

I am currently trying to solve a problem statement. We have an index where I want to fetch all documents at once and apply an update on few fields. This will require pagination across documents during ...
Harshit's user avatar
  • 1,565
0 votes
1 answer
218 views

We are trying to create a zip of all the files related to a particular environment (which would be 100s of 1000s in number with average size of 100KB). After zipping the size of zip file would be ...
Shubham Saxena's user avatar
0 votes
1 answer
135 views

I have recently seen a system design for bidding service and one of its use cases was real-time delivery of bid updates for a specific item (or a set of items) to the client. The design was quite ...
mangusta's user avatar
  • 3,574
1 vote
1 answer
94 views

I am trying to design a posts table, where a user can react to the post with any emoji. I need to keep a count of each unique emoji that is used. If I use a separate Counter table, for each post I ...
user23968269's user avatar
0 votes
0 answers
66 views

I’m new to drawing ER diagrams. In my case, the Staff entity has an attribute called role with values like Head of Department, Dean, and Admin. The Department entity should only have a relationship ...
Hirushan Subasinghe's user avatar
0 votes
2 answers
103 views

Given the diagram from Alexu Book of designing Rate-limiter. I am wondering how the 2 way communication between Redis and rate limiter will take place. The 2 way communication has been shown using ...
Kumar Gaurav's user avatar
1 vote
1 answer
311 views

In current state, I have a AWS Batch, which is configured to run ML training jobs. At the end of its flow, model artifacts are stored in an S3 bucket. Additionally, I have an AWS Application Load ...
jbuddy_13's user avatar
  • 1,238
0 votes
2 answers
129 views

If there is a restful microservice A which has 50 instances of the same services, and if each instance can handle a million concurrent connections, total 50 instances can handle around 50 million ...
vjk's user avatar
  • 2,293
1 vote
1 answer
229 views

I was following this blog on implementing Rate Limiter using Redis. Link to the blog Here they have used MULTI to pack all the atomic commands. This ensures that we're not concurrently writing wrongly ...
Gitesh Khanna's user avatar
0 votes
1 answer
43 views

I have a system where transactions are initially marked as "Pending" in a relational database, if a payment transaction is not immediately successful by payment gateway, I need to fetch the ...
Atul Dewangan's user avatar
0 votes
1 answer
57 views

I have a use case where there is a stream of messages in Queue and I want to send this message to the user using a consumer job with these limitations There a limit like I can send only 1 ...
Atul Dewangan's user avatar
1 vote
1 answer
695 views

I'm having some trouble understanding the need of a distributed lock. I did think of an example where it may be required but I'm not completely sure. I would appreciate some comments if I'm thinking ...
Laksh Chauhan's user avatar
0 votes
1 answer
95 views

I have a service written in Kotlin which has GRPC API's written in it. I want to know can there be graphQL endpoints in the same service or a new service should be created for it. Will it be possible ...
CodeNinj111's user avatar
-2 votes
1 answer
46 views

Requirement create different type of decorator and used it with user class so we can add specific details of different type of user based on decorator and in my code I have two decorator one is ...
Shanu Singh's user avatar
0 votes
1 answer
401 views

i'm trying to use figma tokens and therefore to transform them to scss files with style-dictionary package. however, when i'm trying to build using the cli command style-dictinary build this is the ...
Dannom's user avatar
  • 305
2 votes
0 answers
129 views

I am writing code for a wallet system. At some point we receive a webhook from our payment provider notifying us of a successful deposit. The event is saved & stored and queued as a background job ...
hiddenhenry's user avatar
0 votes
1 answer
190 views

Say we have an OTP entity that represents a one-time password that expires after e.g. 15 minutes. Our system is event-sourced and adheres to DDD principles; for example, we have the following event: ...
Arad's user avatar
  • 13.6k
1 vote
1 answer
675 views

I am currently working on a project that involves setting up a microservices architecture with centralized authentication, authorization, and secret management. I want to implement a centralized ...
Radioactive Boy's user avatar
0 votes
0 answers
62 views

I am designing a system in nodejs where I am handling 1000s of rows of user data. Each row of data will have a multiple async/await call chain to a third party endpoint, where response at each step is ...
user3812230's user avatar
0 votes
1 answer
68 views

I'm grappling with a challenge in domain-driven design (DDD) regarding achieving a Rich Model. In complex systems, it often feels nearly impossible to execute most business rules without access to ...
Julian Gr's user avatar
  • 133
0 votes
0 answers
187 views

I would need some guidance from your side. I'm preparing for a System Design Interview but need help creating an HLD. I'm coming from the perspective of doing an Architectural Design Graph. There, you ...
Harvey W. Rodriguez's user avatar
0 votes
1 answer
61 views

I'm new to Database and Microservices. I'm trying to understand an edge case which is very unlikely to happen but can happen. Assume there in 1 object in inventory and two users trying to process at ...
dhanooram 's user avatar
1 vote
1 answer
375 views

We have rest-api based java service (spring REST application in Tomcat server), which is basically handling the CRUD operation against the database. Now we have a requirement to consume some kafka ...
Kannan K's user avatar
2 votes
1 answer
125 views

In the book Designing Data Intensive Applications, it says: By contrast, B-trees break the database down into fixed-size blocks or pages, traditionally 4 KB in size (sometimes bigger), and read or ...
weilueluo's user avatar
  • 682
0 votes
1 answer
116 views

In the book "Designing Data Intensive Applications", it says Concurrency and crash recovery are simpler if segment files are append-only or immutable. For crash recovery, you don't need to ...
weilueluo's user avatar
  • 682
0 votes
1 answer
1k views

How can i design a system that handle 100k req/s at peak time, each request performs an update of an object within 20kb size? I used nodejs as backend for non blocking io, write-behind pattern with ...
kuroko's user avatar
  • 13
0 votes
1 answer
102 views

Let us say I have a set of systems I can integrate with, but it takes long time to implement integrations with all of them. So I build a software to communicate with other apps using Webhook. Where I ...
Vishwa's user avatar
  • 21
0 votes
3 answers
277 views

I am documenting a project and I have found myself wondering if this is a requirement, a functionality or business logic, after all it is a chat system and if this is not the business logic I would ...
unique_alex020's user avatar
-1 votes
1 answer
53 views

Essentially, what I'm asking is, why use HTTP for anything when TCP alone could suffice? HTTP operates on top of TCP, so by sticking to TCP alone, you simplify parsing and avoid the added complexity ...
younes askour's user avatar
1 vote
0 answers
334 views

So I'm using power automate for the first time to build out a reservation system for 4 packages available for rent. This is my first time using power automate, but I figured a reservation system is a ...
Josh's user avatar
  • 277
1 vote
1 answer
69 views

I have the below basic design for my service. Flow: User sends a request to browser. The request hits the API service through the load balancer. The load balancer redirects request to available ...
Sanketh's user avatar
  • 79
2 votes
2 answers
630 views

In a microservices environment, how do we effectively sort data which is part of two different microservices. For example, lets say we have two microservices Users Service (Has all information ...
Baala Srinivas K's user avatar
0 votes
1 answer
185 views

In consistent hashing, suppose we are using username as for hashing hashFunction(username) = nodeA Now from what I understand, if there is any failure or a node is removed requests will be directed to ...
Disha Gupta's user avatar
1 vote
1 answer
193 views

In a write-through caching strategy, data is first written to the cache and then immediately persisted to the database. Reference - https://codeahoy.com/2017/08/11/caching-strategies-and-how-to-choose-...
Disha Gupta's user avatar
0 votes
1 answer
40 views

I have a cab management system with main entities public class Cab { private int cabID; private String registrationNumber; private String model; private int driverID; // ...
user1379280's user avatar

1
2 3 4 5
13