swtl (@lfswtl) profile picture
outside the galaxy
Joined April 2020
Photo by swtl (@lfswtl)Photo by swtl (@lfswtl)Photo by swtl (@lfswtl)Photo by swtl (@lfswtl)Photo by swtl (@lfswtl)Photo by swtl (@lfswtl)Photo by swtl (@lfswtl)Photo by swtl (@lfswtl)Photo by swtl (@lfswtl)Photo by swtl (@lfswtl)
๐—›๐—ผ๐˜„ ๐—ฑ๐—ผ ๐˜†๐—ผ๐˜‚ ๐—ฑ๐—ฒ๐—ฎ๐—น ๐˜„๐—ถ๐˜๐—ต ๐—ง๐—ฒ๐—ฐ๐—ต๐—ป๐—ถ๐—ฐ๐—ฎ๐—น ๐——๐—ฒ๐—ฏ๐˜? Theย latest SO surveyย (stackoverflow.blog/2024/07/2โ€ฆ) identified technical debt as one of the most important causes of developer frustration. How do you deal with it? What practical methods or strategies did you use to minimize or reduce it?
6
18
3
89
11,722
Introducing LlamaCoder! An open source Claude Artifacts app that can generate full React apps and components with Llama 3.1 405B. 100% free and open source. llamacoder.io
137
568
54
3,885
503,302
Session, cookie, JWT, token, SSO, and OAuth 2.0 - what are they? These terms relate to managing user identity when logging into websites. You declare who you are (identification), your identity is verified (authentication), and you're granted appropriate permissions (authorization). Many solutions exist and continue to emerge. From simple to more complex: ๐Ÿ”นWWW-Authenticate is very basic. The browser prompts for username and password. It lacks control over the login lifecycle, so is rarely used today. ๐Ÿ”นSession-cookie is prevalent in browsers. Servers maintain session storage, and browsers store session IDs in cookies. Mobile apps can use cookies in web views but often prefer tokens for native functions. ๐Ÿ”นTokens are encoded data used for validation, allowing clients to avoid sending credentials repeatedly. They ensure data integrity but aren't always encrypted. ๐Ÿ”นJWT provides a standardized format for tokens. They are digitally signed to ensure their authenticity. Because JWTs can hold session or user data in their claims, servers don't need to store this information separately for verification. ๐Ÿ”นSSO (single sign-on) lets you log in once then access multiple sites. Uses central authentication service (CAS) to maintain cross-site info. ๐Ÿ”นOAuth 2.0 authorizes one site to access your info on another site. โ€“ Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/496keA7
2
143
1
563
43,008
Why is the credit card called โ€œ๐ญ๐ก๐ž ๐ฆ๐จ๐ฌ๐ญ ๐ฉ๐ซ๐จ๐Ÿ๐ข๐ญ๐š๐›๐ฅ๐ž product in banksโ€? How does VISA/Mastercard make money? The diagram below shows the economics of the credit card payment flow.
1
88
2
470
38,478
๐—” ๐—ฅ๐—ถ๐˜€๐—ธ-๐—ฏ๐—ฎ๐˜€๐—ฒ๐—ฑ ๐—”๐—ฝ๐—ฝ๐—ฟ๐—ผ๐—ฎ๐—ฐ๐—ต ๐—ง๐—ผ ๐—ฆ๐—ผ๐—ณ๐˜๐˜„๐—ฎ๐—ฟ๐—ฒ ๐—”๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ In the book "๐—๐˜‚๐˜€๐˜ ๐—˜๐—ป๐—ผ๐˜‚๐—ด๐—ต ๐—ฆ๐—ผ๐—ณ๐˜๐˜„๐—ฎ๐—ฟ๐—ฒ ๐—”๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ" by George Fairbanks, the author introduces Risk-Driven Software Architecture. A risk-based approach to software architecture involves identifying and ๐—ฝ๐—ฟ๐—ถ๐—ผ๐—ฟ๐—ถ๐˜๐—ถ๐˜‡๐—ถ๐—ป๐—ด ๐˜๐—ต๐—ฒ ๐—ฟ๐—ถ๐˜€๐—ธ๐˜€ ๐—ฎ๐˜€๐˜€๐—ผ๐—ฐ๐—ถ๐—ฎ๐˜๐—ฒ๐—ฑ ๐˜„๐—ถ๐˜๐—ต ๐—ฎ ๐˜€๐—ผ๐—ณ๐˜๐˜„๐—ฎ๐—ฟ๐—ฒ ๐˜€๐˜†๐˜€๐˜๐—ฒ๐—บ and then designing the architecture to mitigate those risks. The idea is to focus on the risks most critical to the project's success and address them first rather than trying to address every possible risk. To ๐—ถ๐—บ๐—ฝ๐—น๐—ฒ๐—บ๐—ฒ๐—ป๐˜ a risk-based approach, you first need to ๐—ถ๐—ฑ๐—ฒ๐—ป๐˜๐—ถ๐—ณ๐˜† ๐˜๐—ต๐—ฒ ๐—ฝ๐—ผ๐˜๐—ฒ๐—ป๐˜๐—ถ๐—ฎ๐—น ๐—ฟ๐—ถ๐˜€๐—ธ๐˜€ ๐—ฎ๐˜€๐˜€๐—ผ๐—ฐ๐—ถ๐—ฎ๐˜๐—ฒ๐—ฑ ๐˜„๐—ถ๐˜๐—ต ๐˜†๐—ผ๐˜‚๐—ฟ ๐˜€๐˜†๐˜€๐˜๐—ฒ๐—บ. This can be done through various methods, such as ๐—ฐ๐—ผ๐—ป๐—ฑ๐˜‚๐—ฐ๐˜๐—ถ๐—ป๐—ด ๐—ฎ ๐—ฟ๐—ถ๐˜€๐—ธ ๐—ฎ๐—ป๐—ฎ๐—น๐˜†๐˜€๐—ถ๐˜€, reviewing historical data from similar projects, or consulting with subject matter experts. Once the risks have been identified, they should be prioritized based on their potential impact on the project, the likelihood of occurrence, and the feasibility of mitigation. Next, the ๐˜€๐—ผ๐—ณ๐˜๐˜„๐—ฎ๐—ฟ๐—ฒ ๐—ฎ๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ ๐˜€๐—ต๐—ผ๐˜‚๐—น๐—ฑ ๐—ฏ๐—ฒ ๐—ฑ๐—ฒ๐˜€๐—ถ๐—ด๐—ป๐—ฒ๐—ฑ ๐˜„๐—ถ๐˜๐—ต ๐˜๐—ต๐—ฒ ๐—ถ๐—ฑ๐—ฒ๐—ป๐˜๐—ถ๐—ณ๐—ถ๐—ฒ๐—ฑ ๐—ฟ๐—ถ๐˜€๐—ธ๐˜€ ๐—ถ๐—ป ๐—บ๐—ถ๐—ป๐—ฑ. Addressing the most critical risks may involve trade-offs between architectural qualities, such as performance, scalability, and maintainability. For example, if security is identified as a critical risk, the architecture may need to rank secure communication channels, access control mechanisms, and encryption over other qualities. The book introduces related concepts of ๐—–๐—ผ๐—บ๐—ฝ๐—ผ๐—ป๐—ฒ๐—ป๐˜๐˜€, ๐—ฃ๐—ผ๐—ฟ๐˜๐˜€, ๐—ฎ๐—ป๐—ฑ ๐—–๐—ผ๐—ป๐—ป๐—ฒ๐—ฐ๐˜๐—ผ๐—ฟ๐˜€. We've all heard the word "component" a thousand times differently. The context surrounding the term "component" was more explicit in Fairbanks' work, and "Ports and Connectors" helped cement the idea of what a Component may be in an actual system. An ๐—ฒ๐˜…๐—ฎ๐—บ๐—ฝ๐—น๐—ฒ ๐—ผ๐—ณ ๐˜๐—ต๐—ถ๐˜€ ๐—ฎ๐—ฝ๐—ฝ๐—ฟ๐—ผ๐—ฎ๐—ฐ๐—ต ๐—ถ๐—ป ๐—ต๐—ฒ๐—ฎ๐—น๐˜๐—ต๐—ฐ๐—ฎ๐—ฟ๐—ฒ would be that such software systems must follow strict patient privacy and data security regulations. A risk-based approach can help identify the most critical risks and design the architecture to meet regulatory requirements. For example, the architecture may rank secure data transmission, authentication, and access control mechanisms to protect patient information. It's important to note that a risk-based approach is ๐—ป๐—ผ๐˜ ๐—ฎ ๐—ผ๐—ป๐—ฒ-๐˜๐—ถ๐—บ๐—ฒ ๐—ฝ๐—ฟ๐—ผ๐—ฐ๐—ฒ๐˜€๐˜€. As the project progresses and new information becomes available, the identified risks may change, and the architecture may need adaptation. ๐—ฅ๐—ฒ๐—ด๐˜‚๐—น๐—ฎ๐—ฟ ๐—ฟ๐—ฒ๐˜ƒ๐—ถ๐—ฒ๐˜„๐˜€ ๐—ฎ๐—ป๐—ฑ ๐˜‚๐—ฝ๐—ฑ๐—ฎ๐˜๐—ฒ๐˜€ ๐˜๐—ผ ๐˜๐—ต๐—ฒ ๐—ฟ๐—ถ๐˜€๐—ธ ๐—ฎ๐˜€๐˜€๐—ฒ๐˜€๐˜€๐—บ๐—ฒ๐—ป๐˜ and architecture design are essential to ensure the system remains secure and functional. #softwareengineering #softwaredesign #softwarerchitecture
7
131
1
640
36,108
The buyer pays in USD, and the European seller receives euros. How does this work? This process is called foreign exchange. Suppose Bob (the buyer) needs to pay 100 USD to Alice (the seller), and Alice can only receive EUR. The diagram below illustrates the process. 1. Bob sends 100 USD via a third-party payment provider. In our example, it is Paypal. The money is transferred from Bobโ€™s bank account (Bank B) to Paypalโ€™s account in Bank P1. 2. Paypal needs to convert USD to EUR. It leverages the foreign exchange provider (Bank E). Paypal sends 100 USD to its USD account in Bank E. 3. 100 USD is sold to Bank Eโ€™s funding pool. 4. Bank Eโ€™s funding pool provides 88 EUR in exchange for 100 USD. The money is put into Paypalโ€™s EUR account in Bank E. 5. Paypalโ€™s EUR account in Bank P2 receives 88 EUR. 6. 88 EUR is paid to Aliceโ€™s EUR account in Bank A. Now letโ€™s take a close look at the foreign exchange (forex) market. It has 3 layers: ๐Ÿ”น Retail market. Funding pools are parts of the retail market. To improve efficiency, Paypal usually buys a certain amount of foreign currencies in advance. ๐Ÿ”น Wholesale market. The wholesale business is composed of investment banks, commercial banks, and foreign exchange providers. It usually handles accumulated orders from the retail market. ๐Ÿ”น Top-level participants. They are multinational commercial banks that hold lots of money from different countries. When Bank Eโ€™s funding pool needs more EUR, it goes upward to the wholesale market to sell USD and buy EUR. When the wholesale market accumulates enough orders, it goes upward to top-level participants. Steps 3.1-3.3 and 4.1-4.3 explain how it works. If you have any questions, please leave a comment. What foreign currency did you find difficult to exchange? And what company have you used for foreign currency exchange? โ€“ Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
1
73
1
372
30,579
Would it be nice if the code we wrote automatically turned into architecture diagrams? I recently discovered a Github repo that does exactly this: Diagram as Code for prototyping cloud system architectures. ๐–๐ก๐š๐ญ ๐๐จ๐ž๐ฌ ๐ข๐ญ ๐๐จ? - Draw the cloud system architecture in Python code. - Diagrams can also be rendered directly inside the Jupyter Notebooks. - No design tools are needed. - Supports the following providers: AWS, Azure, GCP, Kubernetes, Alibaba Cloud, Oracle Cloud, etc. Github repo: github. com/mingrammer/diagrams โ€“ Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
12
145
6
817
67,010
Do you believe that Google, Meta, Uber, and Airbnb put almost all of their code in one repository? This practice is called a monorepo. Monorepo vs. Microrepo. Which is the best? Why do different companies choose different options? Monorepo isn't new; Linux and Windows were both created using Monorepo. To improve scalability and build speed, Google developed its internal dedicated toolchain to scale it faster and strict coding quality standards to keep it consistent. Amazon and Netflix are major ambassadors of the Microservice philosophy. This approach naturally separates the service code into separate repositories. It scales faster but can lead to governance pain points later on. Within Monorepo, each service is a folder, and every folder has a BUILD config and OWNERS permission control. Every service member is responsible for their own folder. On the other hand, in Microrepo, each service is responsible for its repository, with the build config and permissions typically set for the entire repository. In Monorepo, dependencies are shared across the entire codebase regardless of your business, so when there's a version upgrade, every codebase upgrades their version. In Microrepo, dependencies are controlled within each repository. Businesses choose when to upgrade their versions based on their own schedules. Monorepo has a standard for check-ins. Google's code review process is famously known for setting a high bar, ensuring a coherent quality standard for Monorepo, regardless of the business. Microrepo can either set their own standard or adopt a shared standard by incorporating best practices. It can scale faster for business, but the code quality might be a bit different. Google engineers built Bazel, and Meta built Buck. There are other open-source tools available, including Nix, Lerna, and others. Over the years, Microrepo has had more supported tools, including Maven and Gradle for Java, NPM for NodeJS, and CMake for C/C++, among others. Over to you: Which option do you think is better? Which code repository strategy does your company use? โ€“ Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
3
82
6
426
36,983
A Roadmap for Full-Stack Development. A full-stack developer needs to be proficient in a wide range of technologies and tools across different areas of software development. Hereโ€™s a comprehensive look at the technical stacks required for a full-stack developer. ๐Ÿ”น 1. Frontend Development Frontend development involves creating the user interface and user experience of a web application. ๐Ÿ”น 2. Backend Development Backend development involves managing the server-side logic, databases, and integration of various services. ๐Ÿ”น 3. Database Development Database development involves managing data storage, retrieval, and manipulation. ๐Ÿ”น 4. Mobile Development Mobile development involves creating applications for mobile devices. ๐Ÿ”น 5. Cloud Computing Cloud computing involves deploying and managing applications on cloud platforms. ๐Ÿ”น 6. UI/UX Design UI/UX design involves designing the user interface and experience of applications. ๐Ÿ”น 7. Infrastructure and DevOps Infrastructure and DevOps involve managing the infrastructure, deployment, and continuous integration/continuous delivery (CI/CD) of applications.
11
114
8
561
79,628
How to improve API performance? Here are 5 tips: 1. ๐—ฃ๐—ฎ๐—ด๐—ถ๐—ป๐—ฎ๐˜๐—ถ๐—ผ๐—ป Pagination is a common optimization technique when result sets are large. By streaming results back to the client in pages, service responsiveness can be improved. 2. ๐—”๐˜€๐˜†๐—ป๐—ฐ๐—ต๐—ฟ๐—ผ๐—ป๐—ผ๐˜‚๐˜€ ๐—Ÿ๐—ผ๐—ด๐—ด๐—ถ๐—ป๐—ด Synchronous logging writes to disk on every API call, slowing down the system. With asynchronous logging, logs are first sent to a lock-free buffer and control is immediately returned. The buffer contents are then flushed periodically to disk, significantly reducing I/O overhead. 3. ๐—–๐—ฎ๐—ฐ๐—ต๐—ถ๐—ป๐—ด Frequently accessed data can be cached for fast retrieval. Clients can query the cache first instead of hitting the database directly every time. For cache misses, the database can be queried as a fallback. In-memory caches like Redis provide faster data access compared to databases. 4. ๐—ฃ๐—ฎ๐˜†๐—น๐—ผ๐—ฎ๐—ฑ ๐—–๐—ผ๐—บ๐—ฝ๐—ฟ๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ป Request and response payloads can be compressed using algorithms such as gzip to reduce transmitted data volume. This speeds up upload and download times. 5. ๐—–๐—ผ๐—ป๐—ป๐—ฒ๐—ฐ๐˜๐—ถ๐—ผ๐—ป ๐—ฃ๐—ผ๐—ผ๐—น๐—ถ๐—ป๐—ด Opening and closing database connections has significant overhead. Using a pool of open connections avoids this. The connection pool manages lifecycle events internally. What other performance optimization tricks have you found useful for APIs? โ€“ Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/496keA7
2
125
4
619
30,570
๐—ช๐—ต๐—ฎ๐˜ ๐—ถ๐˜€ ๐—˜๐˜ƒ๐—ฒ๐—ป๐˜-๐——๐—ฟ๐—ถ๐˜ƒ๐—ฒ๐—ป ๐—”๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ? Event-driven architecture is a software design pattern that operates in real-time. The program's flow is determined by events such as user actions, sensor outputs, or messages from other programs or services. In this architecture, events trigger the execution of specific processes or functions, ensuring immediate responsiveness. We usually implement it with microservices. Some examples of events include a user clicking a button, placing a new order, or uploading a file. This architecture has three key components: ๐Ÿญ. ๐—ฃ๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐—ฒ๐—ฟ๐˜€: These components or services generate events when something notable happens. ๐Ÿฎ. ๐—–๐—ผ๐—ป๐˜€๐˜‚๐—บ๐—ฒ๐—ฟ๐˜€: These are components or services that listen to specific events and react accordingly. ๐Ÿฏ. ๐—–๐—ต๐—ฎ๐—ป๐—ป๐—ฒ๐—น๐˜€ (๐—ผ๐—ฟ ๐—•๐—ฟ๐—ผ๐—ธ๐—ฒ๐—ฟ๐˜€): This is how events are transmitted from producers to consumers. Popular examples include message queues (like RabbitMQ) and streaming platforms (like Apache Kafka). They work as follows: An event producer detects a significant change and creates an event message. The message is sent to an event channel, which delivers it to interested event consumers. Event consumers process the event and perform actions as needed. There are multiple benefits of this architecture: ๐Ÿญ. ๐—ฆ๐—ฐ๐—ฎ๐—น๐—ฎ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜†. Components can be scaled independently to handle varying loads. ๐Ÿฎ. ๐—Ÿ๐—ผ๐—ผ๐˜€๐—ฒ ๐—ฐ๐—ผ๐˜‚๐—ฝ๐—น๐—ถ๐—ป๐—ด. Components are less dependent on each other, making the system more flexible and accessible to change. ๐Ÿฏ. ๐—ฅ๐—ฒ๐˜€๐—ฝ๐—ผ๐—ป๐˜€๐—ถ๐˜ƒ๐—ฒ๐—ป๐—ฒ๐˜€๐˜€. Applications can react to events in real-time or near real-time. ๐Ÿฐ. ๐—ฅ๐—ฒ๐˜€๐—ถ๐—น๐—ถ๐—ฒ๐—ป๐—ฐ๐—ฒ. Failure in one component doesn't affect others. It also includes some ๐—ฑ๐—ถ๐˜€๐—ฎ๐—ฑ๐˜ƒ๐—ฎ๐—ป๐˜๐—ฎ๐—ด๐—ฒ๐˜€, such as increased complexity in design and debug issues and consistency in ensuring that events are processed correctly. Some use cases include: ๐Ÿ”น ๐—œ๐—ผ๐—ง ๐—ฆ๐˜†๐˜€๐˜๐—ฒ๐—บ๐˜€: Managing data from multiple sensors. ๐Ÿ”น ๐—ฅ๐—ฒ๐—ฎ๐—น-๐˜๐—ถ๐—บ๐—ฒ ๐—ฑ๐—ฎ๐˜๐—ฎ ๐—ฝ๐—ฟ๐—ผ๐—ฐ๐—ฒ๐˜€๐˜€๐—ถ๐—ป๐—ด: One of its strengths is processing and analyzing data immediately upon generation. ๐Ÿ”น ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฐ๐—ฒ๐˜€: It complements microservices well, allowing services to communicate asynchronously and remain loosely coupled. #softwareengineering #programming #softwaredesign
4
67
338
19,411
What is a webhook? The diagram below shows a comparison between polling and webhook. Assume we run an eCommerce website. The clients send orders to the order service via the API gateway, which goes to the payment service for payment transactions. The payment service then talks to an external payment service provider (PSP) to complete the transactions. There are two ways to handle communications with the external PSP. ๐Ÿ”น 1. Short polling After sending the payment request to the PSP, the payment service keeps asking the PSP about the payment status. After several rounds, the PSP finally returns with the status. Short polling has two drawbacks: 1) Constant polling of the status requires resources from the payment service. 2) The External service communicates directly with the payment service, creating security vulnerabilities. ๐Ÿ”น 2. Webhook We can register a webhook with the external service. It means: call me back at a certain URL when you have updates on the request. When the PSP has completed the processing, it will invoke the HTTP request to update the payment status. In this way, the programming paradigm is changed, and the payment service doesnโ€™t need to waste resources to poll the payment status anymore. What if the PSP never calls back? We can set up a housekeeping job to check payment status every hour. Webhooks are often referred to as reverse APIs or push APIs because the server sends HTTP requests to the client. We need to pay attention to 3 things when using a webhook: 1) We need to design a proper API for the external service to call. 2) We need to set up proper rules in the API gateway for security reasons. 3) We need to register the correct URL at the external service. โ€“ Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
5
137
1
604
37,806
Introducing LlamaTutor! An AI personal tutor who can explain any subject at any education level using up-to-date sources. 100% free and open source. llamatutor.com
37
224
16
1,331
130,915
Most of the software developers will be out-of-job by 2025. This AI tool can build fully functional web apps on Python/Django/Flask in 1/5th of the time and save 1000s of $$ of development costs. Meet SuperCoder 2.0, an Open Source Autonomous Software Development System:
37
77
5
505
154,986
๐—ช๐—ต๐—ฎ๐˜ ๐—”๐—ฟ๐—ฒ ๐—”๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฎ๐—น ๐—–๐—ต๐—ฎ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ฒ๐—ฟ๐—ถ๐˜€๐˜๐—ถ๐—ฐ๐˜€? ISO/IEC 25010 is a standard that defines a model for software product quality and provides a set of quality characteristics (also called "ilities"). It is part of the ISO/IEC 25000 series and concerns software product quality. The model introduced in ISO/IEC 25010 is known as ๐˜๐—ต๐—ฒ ๐—ฆ๐˜†๐˜€๐˜๐—ฒ๐—บ ๐—ฎ๐—ป๐—ฑ ๐—ฆ๐—ผ๐—ณ๐˜๐˜„๐—ฎ๐—ฟ๐—ฒ ๐—ค๐˜‚๐—ฎ๐—น๐—ถ๐˜๐˜† ๐— ๐—ผ๐—ฑ๐—ฒ๐—น. The most important architectural characteristics defined by ISO/IEC 25010 are: ๐Ÿญ. ๐—™๐˜‚๐—ป๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐—ฎ๐—น๐—ถ๐˜๐˜†: This refers to the set of attributes that bear on the existence of a group of functions and their specified properties. ย ๐Ÿ”น ๐—ฆ๐˜‚๐—ถ๐˜๐—ฎ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜†: Appropriateness of functions for specified tasks. ย ๐Ÿ”น ๐—™๐˜‚๐—ป๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐—ฎ๐—น ๐—ฐ๐—ผ๐—บ๐—ฝ๐—น๐—ฒ๐˜๐—ฒ๐—ป๐—ฒ๐˜€๐˜€: The degree to which the set of functions covers all the specified tasks and user objectives. ย ๐Ÿ”น ๐—™๐˜‚๐—ป๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐—ฎ๐—น ๐—ฐ๐—ผ๐—ฟ๐—ฟ๐—ฒ๐—ฐ๐˜๐—ป๐—ฒ๐˜€๐˜€: The degree to which a system performs its required functions. ๐Ÿฎ. ๐—ฃ๐—ฒ๐—ฟ๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐—ป๐—ฐ๐—ฒ ๐—˜๐—ณ๐—ณ๐—ถ๐—ฐ๐—ถ๐—ฒ๐—ป๐—ฐ๐˜†: This pertains to the performance relative to the resources used under stated conditions. ย ๐Ÿ”น ๐—ง๐—ถ๐—บ๐—ฒ ๐—ฏ๐—ฒ๐—ต๐—ฎ๐˜ƒ๐—ถ๐—ผ๐—ฟ: Degree to which a product or system's response and processing times and throughput rates meet requirements when performing its functions. ย ๐Ÿ”น ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ ๐˜‚๐˜€๐—ฒ: The degree to which the amounts and types of resources a product or system uses meet requirements when performing its functions. ย ๐Ÿ”น ๐—–๐—ฎ๐—ฝ๐—ฎ๐—ฐ๐—ถ๐˜๐˜†: Degree to which a product's or system parameter's largest limits meet requirements. ๐Ÿฏ. ๐—–๐—ผ๐—บ๐—ฝ๐—ฎ๐˜๐—ถ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜†: The capability of two or more systems or components to exchange information and perform their required functions while sharing the same hardware or software environment. ย ๐Ÿ”น ๐—–๐—ผ-๐—ฒ๐˜…๐—ถ๐˜€๐˜๐—ฒ๐—ป๐—ฐ๐—ฒ: Degree to which a product can perform its functions efficiently while sharing a familiar environment and resources without detrimental impact on any other product. ย ๐Ÿ”น ๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐—ผ๐—ฝ๐—ฒ๐—ฟ๐—ฎ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜†: Degree to which two or more systems, products, or components can exchange information and use the information that has been exchanged. ๐Ÿฐ. ๐—จ๐˜€๐—ฎ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜†: The degree to which specified users can use a product or system to achieve goals with effectiveness, efficiency, and satisfaction in a specified context. ย ๐Ÿ”น ๐—”๐—ฝ๐—ฝ๐—ฟ๐—ผ๐—ฝ๐—ฟ๐—ถ๐—ฎ๐˜๐—ฒ๐—ป๐—ฒ๐˜€๐˜€ ๐—ฟ๐—ฒ๐—ฐ๐—ผ๐—ด๐—ป๐—ถ๐˜‡๐—ฎ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜†: The degree to which users can recognize whether a product or system is appropriate for their needs. ย ๐Ÿ”น ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ฎ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜†: The degree to which specified users can use a product or system to achieve the goals of learning to use the product or system with effectiveness, efficiency, freedom from risk, and satisfaction in a specified context of use. ย ๐Ÿ”น ๐—ข๐—ฝ๐—ฒ๐—ฟ๐—ฎ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜†: The degree to which a product or system has attributes that make it easy to operate and control. #softwareengineering #softwarearchitecture #softwaredesign
2
68
1
308
25,342
Update: Crowdstrike came out and released a technical report confirming my analysis. They were reading in a bad data file and attempting to access invalid memory. This global crash was a two-part bomb. The detonator apparently, was NOT new.. it was PRE-INSTALLED. /1
Crowdstrike Analysis: It was a NULL pointer from the memory unsafe C++ language. Since I am a professional C++ programmer, let me decode this stack trace dump for you.
285
3,568
470
14,906
5,206,619
Replying to @ianmiles
C++ is hard. Maybe they have a DEI engineer that did this but for mission-critical software like this Crowdstrike should have set up automated testing using address sanitizer and thread sanitizer that runs on every code update. github.com/google/sanitizersโ€ฆ clang.llvm.org/docs/ThreadSaโ€ฆ
382
220
320
3,257
2,878,709
Crowdstrike Analysis: It was a NULL pointer from the memory unsafe C++ language. Since I am a professional C++ programmer, let me decode this stack trace dump for you.
2,939
19,438
4,823
95,296
34,933,212
Double charging a customer is VERY BAD. How do we avoid it? When we design the payment system, it is important to guarantee that the payment system executes a payment order exactly-once. At the first glance, exactly-once delivery seems very hard to tackle, but if we divide the problem into two parts, it is much easier to solve. Mathematically, an operation is executed exactly-once if: 1. It is executed at least once. 2. At the same time, it is executed at most once. We now explain how to implement at least once using retry and at most once using idempotency check. ๐‘๐ž๐ญ๐ซ๐ฒ Occasionally, we need to retry a payment transaction due to network errors or timeout. Retry provides the at-least-once guarantee. For example, as shown in Figure 10, the client tries to make a $10 payment, but the payment keeps failing due to a poor network connection. Considering the network condition might get better, the client retries the request and this payment finally succeeds at the fourth attempt. ๐ˆ๐๐ž๐ฆ๐ฉ๐จ๐ญ๐ž๐ง๐œ๐ฒ From an API standpoint, idempotency means clients can make the same call repeatedly and produce the same result. For communication between clients (web and mobile applications) and servers, an idempotency key is usually a unique value that is generated by clients and expires after a certain period of time. A UUID is commonly used as an idempotency key and it is recommended by many tech companies such as Stripe and PayPal. To perform an idempotent payment request, an idempotency key is added to the HTTP header: <idempotency-key: key_value>. If you have any questions or I missed anything, please leave a comment. โ€“ Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
2
59
1
351
28,023