SmashCode (@Smashcodedev) header
SmashCode (@Smashcodedev) profile picture

Building scalable web & mobile solutions for businesses worldwide. Trusted by Worldwide Clients

Pakistan
Joined August 2020
Photo by SmashCode (@Smashcodedev)Photo by SmashCode (@Smashcodedev)Photo by SmashCode (@Smashcodedev)Photo by SmashCode (@Smashcodedev)Photo by SmashCode (@Smashcodedev)Photo by SmashCode (@Smashcodedev)Photo by SmashCode (@Smashcodedev)Photo by SmashCode (@Smashcodedev)Photo by SmashCode (@Smashcodedev)Photo by SmashCode (@Smashcodedev)
SmashCode retweeted
The one-line change that reduced clone times by a whopping 99%, says Pinterest. While it may sound cliché, small changes can definitely create a big impact. The Engineering Productivity team at Pinterest witnessed this first-hand. They made a small change in the Jenkins build pipeline of their monorepo codebase called Pinboard. And it brought down clone times from 40 minutes to a staggering 30 seconds. For reference, Pinboard is the oldest and largest monorepo at Pinterest. Some facts about it: - 350K commits - 20 GB in size when cloned fully - 60K git pulls on every business day Cloning monorepos having a lot of code and history is time consuming. This was exactly what was happening with Pinboard. The build pipeline (written in Groovy) started with a “Checkout” stage where the repository was cloned for the build and test steps. The clone options were set to shallow clone, no fetching of tags and only fetching the last 50 commits. But it missed a vital piece of optimization. The Checkout step didn’t use the Git refspec option. This meant that Git was effectively fetching all refspecs for every build. For the Pinboard monorepo, it meant fetching more than 2500 branches. 𝐒𝐨 - 𝐰𝐡𝐚𝐭 𝐰𝐚𝐬 𝐭𝐡𝐞 𝐟𝐢𝐱? The team simply added the refspec option and specified which ref they cared about. It was the “master” branch in this case. This single change allowed Git clone to deal with only one branch and significantly reduced the overall build time of the monorepo. — Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
4
68
314
24,475
How is data sent over the internet? What does that have to do with the OSI model? How does TCP/IP fit into this? 7 Layers in the OSI model are: 1. Physical Layer 2. Data Link Layer 3. Network Layer 4. Transport Layer 5. Session Layer 6. Presentation Layer 7. Application Layer -- Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
3
182
4
601
32,652
How does Docker work? The diagram below shows the architecture of Docker and how it works when we run “docker build”, “docker pull” and “docker run”. There are 3 components in Docker architecture: 🔹 Docker client The docker client talks to the Docker daemon. 🔹 Docker host The Docker daemon listens for Docker API requests and manages Docker objects such as images, containers, networks, and volumes. 🔹 Docker registry A Docker registry stores Docker images. Docker Hub is a public registry that anyone can use. Let’s take the “docker run” command as an example. 1. Docker pulls the image from the registry. 2. Docker creates a new container. 3. Docker allocates a read-write filesystem to the container. 4. Docker creates a network interface to connect the container to the default network. 5. Docker starts the container. – Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
4
170
3
676
37,125
A few years ago, we were creating a new service to extract a particular feature from the existing monolith. Creating the new service felt easy. But switching 100% of traffic to this new service from your monolithic app felt difficult. How does one gain the necessary courage? We utilized Compare and Evaluate. Here’s how it worked: Let’s say you extracted some critical functionality from your monolith into a new service. This functionality involves both reading and writing to the database. [1] Dealing with Reads It’s easier to handle reads because reads are idempotent. Once the service is ready, you have two read paths: - Path A goes through the monolithic app - Path B goes through the new service So how do you compare? You go for dual reads. For every read request, you do the following: - Capture response from path A and path B - Emit the responses as standard events - Send them to a comparison framework - Ramp up the traffic, compare responses, and make adjustments - Once the comparison looks clean, move all reads through the new service (path B) [2] Dealing with Writes With writes, things are different. You cannot perform dual writes to the same database. Instead, you utilize a shadow database. For every write request, you do the following: - Write to the production database via the monolith (Path A) - Also, write the same thing via the new service to a shadow database (Path B) - Read data from the production and shadow database - Send the data to a comparison framework - Ramp up the traffic, compare the states, and make adjustments - Once things are clean, move all writes through the new service to the production database Now, as you can see, this wasn’t an overnight process. But if you do it enough times, you can slowly extract features into new services and simplify your monolithic application. And we didn’t get a single production issue during the migration. So - have you tried this approach to simplify your old monolithic application? Or have you used some other approach?
13
66
386
25,154
The 7 Layers of OSI Model
1
157
4
530
24,948
Have you noticed the transaction notification from your bank? I’m sure you have. The notification usually contains details of a specific transaction - the credit or debit, the parties involved and so on. The bank doesn’t send you the entire transaction history and asks you to figure out what’s new. Basically, the bank communicates only what has changed. The same approach is followed in Change Data Capture. But how does CDC work? On a high level, CDC works by tracking changes in a source dataset and automatically transferring those changes to a target dataset. Here are the 5 main steps to start with CDC: [1] Create an initial snapshot and load it into the target system [2] Enable CDC on the source database [3] Identify the tables to be replicated [4] Start the CDC replication process [5] Monitor The captured changes can then be delivered to multiple consumers (another database, data warehouse, cache, and so on) via some sort of messaging system. There are multiple approaches to implementing CDC: ✅Log-Based: Based on the transaction log ✅Trigger-Based: Based on specific events ✅Timestamp-Based: Based on a special timestamp column So - have you used Change Data Capture with your databases? And how was the experience?
9
79
1
305
19,996
HTTP Status Codes
77
2
238
10,787
𝗪𝗵𝗮𝘁 𝗶𝘀 𝗗𝗮𝘁𝗮 𝗣𝗿𝗼𝗰𝗲𝘀𝘀𝗶𝗻𝗴? It refers to collecting, manipulating, and analyzing data to extract useful insights or information. It involves 𝘁𝗿𝗮𝗻𝘀𝗳𝗼𝗿𝗺𝗶𝗻𝗴 𝗿𝗮𝘄 𝗱𝗮𝘁𝗮 𝗶𝗻𝘁𝗼 𝗺𝗲𝗮𝗻𝗶𝗻𝗴𝗳𝘂𝗹 𝗮𝗻𝗱 𝗮𝗰𝘁𝗶𝗼𝗻𝗮𝗯𝗹𝗲 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻 using various tools, techniques, and algorithms. Data processing can take many forms, including batch processing, real-time processing, and stream processing. In batch processing, large amounts of data are processed at once, often overnight or during low-traffic periods, while real-time processing involves processing data as it arrives. There are several 𝘀𝘁𝗲𝗽𝘀 involved in the data processing: 𝟭. 𝗖𝗼𝗹𝗹𝗲𝗰𝘁𝗶𝗼𝗻: The first step in data processing is data collection. This can be done through various methods, such as surveys, sensors, web scraping, and APIs. 𝟮. 𝗖𝗹𝗲𝗮𝗻𝗶𝗻𝗴: Raw data collected from various sources often contain errors, duplicates, and missing values. Data cleaning involves identifying and correcting these errors to ensure data accuracy and consistency. 𝟯. 𝗧𝗿𝗮𝗻𝘀𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻: Once the data has been cleaned, it needs to be transformed into a format that is easy to analyze. This may involve aggregating data, converting data types, or normalizing data. 𝟰. 𝗔𝗻𝗮𝗹𝘆𝘀𝗶𝘀: After data transformation, the next step is to analyze the data. This can be done using various statistical and machine-learning techniques to extract insights and patterns from the data. 𝟱. 𝗩𝗶𝘀𝘂𝗮𝗹𝗶𝘇𝗮𝘁𝗶𝗼𝗻: Data visualization involves presenting the analyzed data in a visual format, such as charts, graphs, or maps, to help stakeholders understand and interpret the insights. Image credits: Lakshmi Shiva Ganesh Sontenam #data
5
75
3
332
24,343
SmashCode retweeted
What is a cookie? Imagine Bob goes to a coffee shop for the first time, orders a medium-sized espresso with two sugars. The cashier records Bob’s identity and preferences on a card and hands it over to Bob with a cup of coffee. The next time Bob goes to the cafe, he shows the cashier the preference card. The cashier immediately knows who the customer is and what kind of coffee he likes. A cookie acts as the preference card. When we log in to a website, the server issues a cookie to us with a small amount of data. The cookie is stored on the client side, so the next time we send a request to the server with the cookie, the server knows our identity and preferences immediately without looking into the database. -- Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
11
106
4
434
32,783
Cache-aside is the most popular caching strategy. It’s simple to understand: - You always fetch from the cache - If there’s a cache miss, you query the database - At the end, you update the cache to help future requests for the same data. However, this sequence of events can also lead to stale data. The scenario is known as Stale Sets and it’s quite interesting. How does it happen? Let’s say 3 users (or 3 clients) are concurrently trying to read and write a key. Here’s a possible sequence of events. [1] User A tries to read from the cache but gets a cache miss. [2] User A queries the database which returns the data. [3] Now, User B comes along and updates the data in the database successfully. [4] User B sends an invalidation to the cache. But anyway, the key wasn’t present in the cache. [5] User A was running slow and now updates the cache. [6] But the data is stale since User B already updated the data [7] User C reads from the cache and gets stale data. Ultimately, stale data is set in the cache and it can stay there for a long time. So - how do you deal with stale sets or stale data in general?
14
52
1
315
22,146
What are the most common 𝗨𝘀𝗲 𝗖𝗮𝘀𝗲𝘀 𝗳𝗼𝗿 𝗞𝗮𝗳𝗸𝗮? We have covered lots of concepts around Kafka already. But what are the most common use cases for The System that you are very likely to run into as a Data Engineer? 𝗟𝗲𝘁’𝘀 𝘁𝗮𝗸𝗲 𝗮 𝗰𝗹𝗼𝘀𝗲𝗿 𝗹𝗼𝗼𝗸: 𝗪𝗲𝗯𝘀𝗶𝘁𝗲 𝗔𝗰𝘁𝗶𝘃𝗶𝘁𝘆 𝗧𝗿𝗮𝗰𝗸𝗶𝗻𝗴. ➡️ The Original use case for Kafka by LinkedIn. ➡️ Events happening in the website like page views, conversions etc. are sent via a Gateway and piped to Kafka Topics. ➡️ These events are forwarded to the downstream Analytical systems or processed in Real Time. ➡️ Kafka is used as an initial buffer as the Data amounts are usually big and Kafka guarantees no message loss due to its replication mechanisms. 𝗗𝗮𝘁𝗮𝗯𝗮𝘀𝗲 𝗥𝗲𝗽𝗹𝗶𝗰𝗮𝘁𝗶𝗼𝗻. ➡️ Database Commit log is piped to a Kafka topic. ➡️ The committed messages are executed against a new Database in the same order. ➡️ Database replica is created. 𝗟𝗼𝗴/𝗠𝗲𝘁𝗿𝗶𝗰𝘀 𝗔𝗴𝗴𝗿𝗲𝗴𝗮𝘁𝗶𝗼𝗻. ➡️ Kafka is used for centralized Log and Metrics collection. ➡️ Daemons like FluentD are deployed in servers or containers together with the Applications to be monitored. ➡️ Applications send their Logs/Metrics to the Daemons. ➡️ The Daemons pipe Logs/Metrics to a Kafka Topic. ➡️ Logs/Metrics are delivered downstream to storages like ElasticSearch or InfluxDB for Log/Metrics discovery respectively. ➡️ This is also how you would track your IoT Fleets. 𝗦𝘁𝗿𝗲𝗮𝗺 𝗣𝗿𝗼𝗰𝗲𝘀𝘀𝗶𝗻𝗴. ➡️ This is usually coupled with ingestion mechanisms already covered. ➡️ Instead of piping Data to a certain storage downstream we mount a Stream Processing Framework on top of Kafka Topics. ➡️ The Data is filtered, enriched and then piped to the downstream systems to be further used according to the use case. ➡️ This is also where one would be running Machine Learning Models embedded into a Stream Processing Application. 𝗠𝗲𝘀𝘀𝗮𝗴𝗶𝗻𝗴. ➡️ Kafka can be used as a replacement for more traditional messaging brokers like RabbitMQ. ➡️ Kafka has better durability guarantees and is easier to configure for several separate Consumer Groups to consume from the same Topic. ❗️Having said this - always consider the complexity you are bringing with introduction of a Distributed System. Sometimes it is better to just use traditional frameworks. -------- Follow me to upskill in #MLOps, #MachineLearning, #DataEngineering, #DataScience and overall #Data space. 𝗗𝗼𝗻’𝘁 𝗳𝗼𝗿𝗴𝗲𝘁 𝘁𝗼 𝗹𝗶𝗸𝗲 🩵, 𝘀𝗵𝗮𝗿𝗲 𝗮𝗻𝗱 𝗰𝗼𝗺𝗺𝗲𝗻𝘁! Join a growing community of Data Professionals by subscribing to my 𝗡𝗲𝘄𝘀𝗹𝗲𝘁𝘁𝗲𝗿/𝗕𝗹𝗼𝗴.
5
105
1
488
27,767
Linux Boot Process
12
484
7
1,836
90,380
How to ensure 𝗗𝗮𝘁𝗮 𝗤𝘂𝗮𝗹𝗶𝘁𝘆 𝗶𝗻 𝗠𝗮𝗰𝗵𝗶𝗻𝗲 𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴 𝗦𝘆𝘀𝘁𝗲𝗺𝘀? It is extremely important to ensure Data Quality upstream of ML Training and Inference Pipelines, trying to do it in the pipelines will cause unavoidable failure when working at scale. Data Contracts can be leveraged for this goal. Data Contract is an agreement between Data Producers and Data Consumers about the qualities to be met by Data being produced. Data Contract should hold the following non-exhaustive list of metadata: 👉 Schema Definition. 👉 Schema Version. 👉 SLA metadata. 👉 Semantics. 👉 Lineage. 👉 … Example Architecture Enforcing Data Contracts: 𝟭: Schema changes are implemented in version control, once approved - they are pushed to the Applications generating the Data, Databases holding the Data and a central Data Contract Registry. [𝗜𝗺𝗽𝗼𝗿𝘁𝗮𝗻𝘁]: Ideally you should be enforcing a Data contract at this stage, when producing Data. Data Validation steps down the stream are Detection and Prevention mechanisms that don’t allow low quality data to reach downstream systems. There might be a significant delay before you can do those checks, causing irreversible corruption or loss of data. Applications push generated Data to Kafka Topics: 𝟮: Events emitted directly by the Application Services. 👉 This also includes IoT Fleets and Website Activity Tracking. 𝟮.𝟭: Raw Data Topics for CDC streams. 𝟯: A Flink Application(s) consumes Data from Raw Data streams and validates it against schemas in the Contract Registry. 𝟰: Data that does not meet the contract is pushed to Dead Letter Topic. 𝟱: Data that meets the contract is pushed to Validated Data Topic. 𝟲: Data from the Validated Data Topic is pushed to object storage for additional Validation. 𝟳: On a schedule Data in the Object Storage is validated against additional SLAs in Data Contracts and is pushed to the Data Warehouse to be Transformed and Modeled for Analytical purposes. 𝟴: Modeled and Curated data is pushed to the Feature Store System for further Feature Engineering. 𝟴.𝟭: Real Time Features are ingested into the Feature Store directly from Validated Data Topic (5). 👉 Ensuring Data Quality here is complicated since checks against SLAs is hard to perform. 𝟵: High Quality Data is used in Machine Learning Training Pipelines. 𝟭𝟬: The same Data is used for Feature Serving in Inference. Note: ML Systems are plagued by other Data related issues like Data and Concept Drifts. These are silent failures and while they can be monitored, we don’t include it in the Data Contract. Let me know your thoughts! 👇 -------- Follow me to upskill in #MLOps, #MachineLearning, #DataEngineering, #DataScience and overall #Data space. 𝗗𝗼𝗻’𝘁 𝗳𝗼𝗿𝗴𝗲𝘁 𝘁𝗼 𝗹𝗶𝗸𝗲 🩵, 𝘀𝗵𝗮𝗿𝗲 𝗮𝗻𝗱 𝗰𝗼𝗺𝗺𝗲𝗻𝘁! Join a growing community of Data Professionals by subscribing to my 𝗡𝗲𝘄𝘀𝗹𝗲𝘁𝘁𝗲𝗿/𝗕𝗹𝗼𝗴.
3
57
1
275
15,924
What is API versioning, and why is it important? API versioning is a strategic approach in software development for managing different iterations of an API. It enables developers to deploy new features, fix bugs and enhance performance without destabilizing the current versions used by users. There are several strategies for API versioning. Some of the most commonly used are URI versioning, header versioning, and query parameter versioning. Let's look at URI versioning. This method involves embedding the version number of the API directly in the endpoint URI, allowing distinct paths for different versions. For instance, an API endpoint could be /api/v1/articles and the next version might be /api/v2/articles. This method is straightforward and easily understandable, making it popular among developers. You can learn more about API versioning here: drp.li/api-versioning-postma… Tips for effective API versioning: 🔸 Clearly define versioning: Establish a straightforward versioning structure from the beginning. For URI versioning, using simple increments like v1, v2, and so on is effective and commonly accepted. 🔸Document changes thoroughly: Provide comprehensive documentation for each API version update, detailing changes, additions, and deprecations. Clear documentation is crucial for enabling API consumers to seamlessly adapt their applications. 🔸 Utilize semantic versioning: Though URI versioning typically indicates major version changes, integrating semantic versioning principles—MAJOR.MINOR.PATCH—into your documentation and release notes can offer additional clarity and detail. 🔸 Prioritize backward compatibility: Aim for backward compatibility with new releases. Should breaking changes be required, reserve them for a major version release to minimize user impact. 🔸 Communicate deprecations early: Notify users in advance of impending deprecations, offering clear timelines and assistance for migration to newer versions. 🔸 Implement robust testing: Implement comprehensive testing protocols before launching a new version to ensure existing applications continue to operate without interruption. —— Want more engineering insights like this? Subscribe to our free newsletter for a weekly deep dive and content roundup: drp.li/luc-newsletter-z9tk
7
126
1
538
30,989
What is domain-driven design, and how does it work? Software that seamlessly integrates with business domains brings a strong set of benefits to an organization. It can streamline operations, enhance user-centric features, and provide stakeholders with real-time insights for quick, well-thought decisions. DDD is a software development approach that excels at providing this alignment between domain experts and developers, bridging the software's functionalities directly with the business's needs. There are many components and concepts to DDD, below are some of the concepts: 1) Bounded contexts Is a logical boundary in which the terms are consistent. The ubiquitous language bridges technical and business communication within this context. It allows everyone to speak the same language, which is one of the most powerful benefits of DDD. 2) Entities and value objects Both play crucial roles in ensuring the domain model captures the business needs accurately. Entities are objects that have a distinct identity that runs through time & different states. Value objects describe a characteristic but lack a conceptual identity. Entities are mutable whereas value objects are immutable. 3) Aggregates These are clusters of domain objects (entities & value objects) that can be treated as a single unit. They provide a mechanism to manage & enforce consistency within a set of related domain objects. Advantages of DDD: 🟢 Alignment: Just as a bridge connects two sides, DDD ensures software development is seamlessly connected to business domains. 🟢 Flexibility: Through clear domain models, DDD provides a foundation that can be more amenable to changes, aligning with the evolving business requirements. 🟢 Improved collaboration: By establishing a shared language, clarity & unity is ensured between devs & domain experts. Use Cases: 🔸 Complex systems: DDD excels in dealing with complex domains with detailed business rules. 🔸 Large teams: Ensures a shared understanding across multi-disciplinary teams. 🔸 Evolving businesses: Businesses that are rapidly changing, DDD allows for flexibility & adaptability in the software design. Disadvantages: 🔴 Overhead: Setting up the right contexts, entities, & value objects can be time-consuming. 🔴 Complexity: For less intricate domains, it can be overkill. It requires a steep learning curve & rigorous discipline. 🔴 Misalignment: Without regular consultations with domain experts, our DDD blueprint might stray from the evolving business landscape. DDD helps foster collaboration between developers & domain experts, & design software that closely aligns with business needs. It doesn't fit every scenario, but when it does, the impact is clear. Each project's unique demands dictate its suitability. —— A big thank you to our partner Postman who keeps our content free to the community. Did you know there is a VS Code extension for Postman? A bunch of new features were recently released for it too. You can learn more about the new features here: drp.li/vs-code-new-features-…
3
73
1
319
20,106
SmashCode retweeted
Top 8 Programming Paradigms - Part 1. Download link for Part 2 is available at the end. 🔹 Imperative Programming Imperative programming describes a sequence of steps that change the program’s state. Languages like C, C++, Java, Python (to an extent), and many others support imperative programming styles. 🔹 Declarative Programming Declarative programming emphasizes expressing logic and functionalities without describing the control flow explicitly. Functional programming is a popular form of declarative programming. 🔹 Object-Oriented Programming (OOP) Object-oriented programming (OOP) revolves around the concept of objects, which encapsulate data (attributes) and behavior (methods or functions). Common object-oriented programming languages include Java, C++, Python, Ruby, and C#. 🔹 Aspect-Oriented Programming (AOP) Aspect-oriented programming (AOP) aims to modularize concerns that cut across multiple parts of a software system. AspectJ is one of the most well-known AOP frameworks that extends Java with AOP capabilities. 🔹 Functional Programming Functional Programming (FP) treats computation as the evaluation of mathematical functions and emphasizes the use of immutable data and declarative expressions. Languages like Haskell, Lisp, Erlang, and some features in languages like JavaScript, Python, and Scala support functional programming paradigms. 🔹 Reactive Programming Reactive Programming deals with asynchronous data streams and the propagation of changes. Event-driven applications, and streaming data processing applications benefit from reactive programming. 🔹 Generic Programming Generic Programming aims at creating reusable, flexible, and type-independent code by allowing algorithms and data structures to be written without specifying the types they will operate on. Generic programming is extensively used in libraries and frameworks to create data structures like lists, stacks, queues, and algorithms like sorting, searching. 🔹 Concurrent Programming Concurrent Programming deals with the execution of multiple tasks or processes simultaneously, improving performance and resource utilization. Concurrent programming is utilized in various applications, including multi-threaded servers, parallel processing, concurrent web servers, and high-performance computing. -- We cannot include everything in a single diagram. To get Part 2, subscribe to our newsletter: bit.ly/bytebytegopp
2
172
1
609
45,011
SmashCode retweeted
Top 12 Tips for API Security - Use HTTPS - Use OAuth2 - Use WebAuthn - Use Leveled API Keys - Authorization - Rate Limiting - API Versioning - Whitelisting - Check OWASP API Security Risks - Use API Gateway - Error Handling - Input Validation – Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/496keA7
7
234
2
892
42,349
SmashCode retweeted
REST API Cheatsheet. The method to download high-resolution PDF is available at the end. This guide is designed to help you understand the world of RESTful APIs in a clear and engaging way. What's inside: - An exploration of the six fundamental principles of REST API design. - Insights into key components such as HTTP methods, protocols, versioning, and more. - A special focus on practical aspects like pagination, filtering, and endpoint design. Whether you're beginning your API journey or looking to refresh your knowledge, this blog and cheat sheet combo is the perfect toolkit for success. – Subscribe to our newsletter to download the 𝐡𝐢𝐠𝐡-𝐫𝐞𝐬𝐨𝐥𝐮𝐭𝐢𝐨𝐧 𝐜𝐡𝐞𝐚𝐭 𝐬𝐡𝐞𝐞𝐭. After signing up, find the download link on the success page: bit.ly/3tMUM2B
5
229
2
910
58,388
Network protocols function as the main pillars that enable communication between devices over a network. Understanding major networking protocols is important for developers. However, there are a lot to remember. Here's a break down some of the most important ones:
8
116
1
401
22,410
SmashCode retweeted
How Does a Typical Push Notification System Work? The diagram below shows the architecture of a notification system that covers major notification channels: - In-App notifications - Email notifications - SMS and OTP notifications - Social media pushes Let’s walk through the steps. 🔹 Steps 1.1 and 1.2 - The business services send notifications to the notification gateway. The gateway can handle two modes: one mode receives one notification each time, and the other receives notifications in batches. 🔹 Steps 2, 2.1, and 2.2 - The notification gateway forwards the notifications to the distribution service, where the messages are validated, formatted, and scheduled based on settings. The notification template repository allows users to pre-define the message format. The channel preference repository allows users to pre-define the preferred delivery channels. 🔹 Step 3 - The notifications are then sent to the routers, normally message queues. 🔹 Step 4 - The channel services communicate with various internal and external delivery channels, including in-app notifications, email delivery, SMS delivery, and social media apps. 🔹 Steps 5 and 6 - The delivery metrics are captured by the notification tracking and analytics service, where the operations team can view the analytical reports and improve user experiences. — Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
4
193
814
41,291