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
4
votes
1 answer

Trading off between User Bandwidth and Download Interval

I am designing a non commercial open source client app which needs to download data of exactly 100 KB from server on regular interval and show an alert in client app based on the data changes. Now I need to trade off between the user bandwidth and…
Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
4
votes
1 answer

How to handle a MongoDB connection in a large Flask project in a persistent and thread-safe manner?

I have a large Flask project spread across multiple modules. I want all of those modules to get access to my MongoDB (PyMongo) database connection. According to best practices, I want exactly one connection pool to persist throughout the application…
agdhruv
  • 575
  • 6
  • 20
4
votes
2 answers

Designing a System that would detect typos and suggestions

This was asked in an interview. I think the answer can be done by constructing a trie of all valid words and then suggestions can be made based on a possible valid path which was otherwise given as incorrect. Say if user types apfle, and system…
Shamim Hafiz - MSFT
  • 21,454
  • 43
  • 116
  • 176
4
votes
5 answers

Is microservice architecture using message queues and event driven architecture same

Edit v1: I have been going through some system design videos and learnt about microservice architecture using message queues and event-driven architecture. But I don't seem to find any substantial point of difference between the two. Both have…
inode
  • 51
  • 6
4
votes
1 answer

Random File Writing

If I have multiple threads generating blocks of a file, what is the best way to write out the blocks? ex) 5 threads working on a file of 500 blocks, block 0 is not necessarily completed before block 1, but the output file on disk need to be in…
Solti
  • 633
  • 2
  • 6
  • 17
4
votes
5 answers

Very simple Enterprise Application Architecture - making it scale

I'm using a very simple architecture for one of my intranet enterprise applications. Client: 1 agent running on each computer sending system config data (one time), reports (every 2 to 5 min) => size of the data flowing from client to server is a…
Sameet
  • 2,191
  • 7
  • 28
  • 55
3
votes
4 answers

WPF/Silverlight enterprise application architecture.. what do you do?

I've been wondering what lives in the community for quite some time now; I'm talking about big, business-oriented WPF/Silverlight enterprise applications. Theoretically, there are different models at play: Data Model (typically, linked to…
KoenJ
  • 1,093
  • 2
  • 13
  • 24
3
votes
0 answers

React.ReactNode as argument in storybook

This is my button component type import React from 'react' export type ButtonProps = { label: string; color?:'primary' | 'secondary' | 'tertiary'; size?:'mobile' | 'tablet' | 'desktop', handleClick?:()=>void, fullWidth?:boolean, …
3
votes
0 answers

System Design Document template for firmware development on Atmel UC3 platfrom

Do any body have or know any site where I can get a template for System Design Document for my firmware develop project for Atmel UC3 platform?
Surjya Narayana Padhi
  • 7,741
  • 25
  • 81
  • 130
3
votes
2 answers

Best practice to use HttpClient in NET 6.0

I am looking for a best practice solution for the next task. I use ASP.NET Core 6.0. I created an SDK which works with public API. The SDK communicates with API via Http request. I use HttpClient class to make http requests. My goal is to build a…
Roman
  • 371
  • 2
  • 3
  • 15
3
votes
5 answers

Design architecture of a notification system

I need to design a notification system that will send notifications to users when events happen. I have a microsystem environment, actually, when an event happen, a ms sends a message in a queue (q.send-event), that will be consumed by a…
tazmin32w
  • 127
  • 10
3
votes
1 answer

How to build in app notification service?

I'm learning backend and API development and trying to understand how to implement some features from scratch without using any paid third party service. I want to understand this concept from design as well as implementation pov. Please share if…
3
votes
2 answers

Dropbox's ATF - How functions/callbacks are stored in database?

I am reading about dropbox's Async. Task Framework and its architecture from dropbox tech blog: https://dropbox.tech/infrastructure/asynchronous-task-scheduling-at-dropbox The architecture seems to be clear to me but what I can't understand is how…
Kaushal28
  • 5,377
  • 5
  • 41
  • 72
3
votes
2 answers

How to maintain order of messages among multiple instances of same application

We have a very simple application which read messages from MQ and transform the messages into some different format and send it to another MQ. The application is deployed in the Openshift environment. Hence at any given time multiple instances of…
vivek075
  • 71
  • 6
3
votes
2 answers

Django celery error while adding tasks to RabbitMQ message queue : AttributeError: 'ChannelPromise' object has no attribute '__value__'

I have setup celery, rabbitmq and django web server on digitalocean. RabbitMQ runs on another server where my Django app is not running. When I am trying to add the tasks to the queue using delay I am getting an error AttributeError:…
Himanshu Poddar
  • 7,112
  • 10
  • 47
  • 93