Questions tagged [system-design]

Systems design is the process of defining the architecture, components, modules, interfaces, and data for a system to satisfy specified requirements. (wikipedia)

Systems design is the process of defining the architecture, components, modules, interfaces, and data for a system to satisfy specified requirements. Systems design could be seen as the application of systems theory to product development. ref

618 questions
3
votes
1 answer

CQRS/ES denormalizers

I'm working on an invoicing web application which uses event sourcing and CQRS. I have 2 denormalizers for different queries (one for a list of invoice summaries, and one for a single invoice with full details). I find it strange I need to copy a…
amitayh
  • 770
  • 1
  • 8
  • 19
3
votes
3 answers

Why is Queue/FIFO ordering important in Message Queue?

One option for a Messaging Provider is a Message Queue, which provides FIFO ordering, i.e. Queue. Why would the ordering of messages be important? I wonder if is it because of the priority of the messages or anything similar to that. i would…
3
votes
4 answers

What is the differences between Traditional code-based engineering and model-driven engineering approaches?

I've found this paragraph in the literature but I didn't understand the meaning of it Design practice is moving from traditional code-based engineering, with a strong division of work along the development life cycle, to model-driven…
Melisa
  • 157
  • 1
  • 9
3
votes
1 answer

Python Package Design And Circular Imports

I'm using Python 3.3.2 to write a package that encapsulates a filesystem. My project looks like this: ~/ python/ filesystem/ __init__.py file.py directory.py With PYTHONPATH=~/python. The problem is, file.py needs…
Dan Gittik
  • 3,460
  • 3
  • 17
  • 24
3
votes
3 answers

Database good system decoupling point?

We have two systems where system A sends data to system B. It is a requirement that each system can run independently of the other and neither will blow up if the other is down. The question is what is the best way for system A to communicate…
Marcus Leon
  • 55,199
  • 118
  • 297
  • 429
2
votes
1 answer

Represent user input in sequence diagram

How do I represent user input (for example, some information needed to create a new account) in a sequence diagram?
Quang Huynh
  • 345
  • 1
  • 4
  • 13
2
votes
1 answer

Parking Lot, OOP Design - Custom Design

I am working on the parking lot example, and made few assumptions as I design. I have couple of questions in assigning attributes to Items/Objects. 1) If parkingSpace is not assigned by a system, i.e., user just into Lot, finds an appropriate place…
sravanreddy001
  • 257
  • 1
  • 5
  • 17
2
votes
1 answer

Why are distinct classes necessary for Customer and Account in the design of the Amazon Shopping System?

I've been studying the low-level design (LLD) of the Amazon Shopping Website on Educative. In this context, I've come across two classes: 'Customer' and 'Account' (details provided below). Could someone offer insights into the reasons behind keeping…
Thejesh
  • 33
  • 3
2
votes
1 answer

Tail Latencies and SLA: Trying to understand a quote from Designing Data Intensive Applications

I was reading Designing Data Intensive Applications book by Martin Kelppmann, where I read a quote about SLA. For example, percentiles are often used in service level objectives (SLOs) and service level agreements (SLAs), contracts that define…
2
votes
2 answers

UML how to indicate one class sending request to same class

There are 2 classes in the scenario under consideration, User and ConnectionRequest. The structures of the 2 classes are given below: User: fullName: String username: String email: String password: String bio: String connections: Array timestamp:…
2
votes
0 answers

How could an Avro parser distinguish the padding at the end from actual values?

I have a question on this example from Designing Data-Intensive Applications page 119. How could the parser possibly know that the 0 in the red rectangle is just padding to make the byte 8 bites? (I assume it's padding.) It might just be interpreted…
Zack Light
  • 167
  • 2
  • 11
2
votes
0 answers

How does a service discovers service registry in microservice architecture with client side service discovery?

Service Registry is used for discovering services in micro-service architecture. As service registry is itself a service then how does it gets discovered by other services ?
Shubham
  • 211
  • 2
  • 13
2
votes
2 answers

Data Aggregator/composition service in Microservices

I am developing an application where there is a dashboard for data insights. The backend is a set of microservices written in NodeJS express framework, with MySQL backend. The pattern used is the Database-Per-Service pattern, with a message broker…
2
votes
1 answer

Minimizing failure without impacting recovery when building processes on top of Kafka

I am working with a microservice that consumes messages from Kafka. It does some processing on the message and then inserts the result in a database. Only then am I acknowledging the message with Kafka. It is required that I keep data loss to an…
Zeruno
  • 1,391
  • 2
  • 20
  • 39
2
votes
0 answers

storing millions of values again a key database modelling

I want to store all tags against the document in which they appeared and make it searchable by some other service/client. Scale: 10 Billion search query per day 10 Million New tags CRUD per day (deleted from doc or appended to doc) So…