Amonce DEMBELE (@thkernel) header
Amonce DEMBELE (@thkernel) profile picture

@Tech mercenary, Developer Advocate, Full Stack Developer, Growth Hacker, Ruby Evangilist, Elixir, Rails, C#, JavaScript

Mali
Joined May 2015
Photo by Amonce DEMBELE (@thkernel)Photo by Amonce DEMBELE (@thkernel)Photo by Amonce DEMBELE (@thkernel)Photo by Amonce DEMBELE (@thkernel)Photo by Amonce DEMBELE (@thkernel)Photo by Amonce DEMBELE (@thkernel)Photo by Amonce DEMBELE (@thkernel)Photo by Amonce DEMBELE (@thkernel)Photo by Amonce DEMBELE (@thkernel)Photo by Amonce DEMBELE (@thkernel)
Amonce DEMBELE retweeted
Top 9 website performance metrics you cannot ignore: Load Time: This is the time taken by the web browser to download and display the webpage. It’s measured in milliseconds. Time to First Byte (TTFB): It’s the time taken by the browser to receive the first byte of data from the web server. TTFB is crucial because it indicates the general ability of the server to handle traffic. Request Count: The number of HTTP requests a browser has to make to fully load the page. The lower this count, the faster a website will feel to the user. DOMContentLoaded (DCL): This is the time it takes for the full HTML code of a webpage to be loaded. The faster this happens, the faster users can see useful functionality. This time doesn’t include loading CSS and other assets Time to above-the-fold load: “Above the fold” is the area of a webpage that fits in a browser window without a user having to scroll down. This is the content that is first seen by the user and often dictates whether they’ll continue reading the webpage. First Contentful Paint (FCP): This is the time at which content first begins to be “painted” by the browser. It can be a text, image, or even background color. Page Size: This is the total file size of all content and assets that appear on the page. Over the last several years, the page size of websites has been growing constantly. The bigger the size of a webpage, the longer it will take to load Round Trip Time (RTT): This is the amount of time a round trip takes. A round trip constitutes a request traveling from the browser to the origin server and the response from the server going to the browser. Reducing RTT is one of the key approaches to improving a website’s performance. Render Blocking Resources: Some resources block other parts of the page from being loaded. It’s important to track the number of such resources. The more render-blocking resources a webpage has, the greater the delay for the browser to load the page. Over to you - What other website performance metrics do you track? Reference: Cloudflare Docs -- Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
2
134
529
37,765
Amonce DEMBELE retweeted
How do we manage data? Here are top 6 data management patterns. 🔹 Cache Aside When an application needs to access data, it first checks the cache. If the data is not present (a cache miss), it fetches the data from the data store, stores it in the cache, and then returns the data to the user. This pattern is particularly useful for scenarios where data is read frequently but updated less often, reducing the number of database hits and improving application performance. 🔹 Materialized View A Materialized View is a database object that contains the results of a query. It is physically stored, meaning the data is actually computed and stored on disk, as opposed to being dynamically generated upon each request. This can significantly speed up query times for complex calculations or aggregations that would otherwise need to be computed on the fly. Materialized views are especially beneficial in data warehousing and business intelligence scenarios where query performance is critical. 🔹 CQRS CQRS (Command Query Responsibility Segregation) is an architectural pattern that separates the models for reading and writing data. This means that the data structures used for querying data (reads) are separated from the structures used for updating data (writes). This separation allows for optimization of each operation independently, improving performance, scalability, and security. CQRS can be particularly useful in complex systems where the read and write operations have very different requirements. 🔹 Event Sourcing Event Sourcing is a pattern where changes to the application state are stored as a sequence of events. Instead of storing just the current state of data in a domain, Event Sourcing stores a log of all the changes (events) that have occurred over time. This allows the application to reconstruct past states and provides an audit trail of changes. Event Sourcing is beneficial in scenarios requiring complex business transactions, auditability, and the ability to rollback or replay events. 🔹 Index Table The Index Table pattern involves creating additional tables in a database that are optimized for specific query operations. These tables act as secondary indexes and are designed to speed up the retrieval of data without requiring a full scan of the primary data store. Index tables are particularly useful in scenarios with large datasets and where certain queries are performed frequently. 🔹 Sharding Sharding is a data partitioning pattern where data is divided into smaller, more manageable pieces, or "shards", each of which can be stored on different database servers. This pattern is used to distribute the data across multiple machines to improve scalability and performance. Sharding is particularly effective in high-volume applications, as it allows for horizontal scaling, spreading the load across multiple servers to handle more users and transactions. -- Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
2
191
2
756
45,983
Amonce DEMBELE retweeted
Top 6 Load Balancing Algorithms. 🔹 Static Algorithms 1. Round robin The client requests are sent to different service instances in sequential order. The services are usually required to be stateless. 2. Sticky round-robin This is an improvement of the round-robin algorithm. If Alice’s first request goes to service A, the following requests go to service A as well. 3. Weighted round-robin The admin can specify the weight for each service. The ones with a higher weight handle more requests than others. 4. Hash This algorithm applies a hash function on the incoming requests’ IP or URL. The requests are routed to relevant instances based on the hash function result. 🔹 Dynamic Algorithms 5. Least connections A new request is sent to the service instance with the least concurrent connections. 6. Least response time A new request is sent to the service instance with the fastest response time. -- Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
3
100
1
367
23,885
Amonce DEMBELE retweeted
Explaining 8 Popular Network Protocols in 1 Diagram. Network protocols are standard methods of transferring data between two computers in a network. 1. HTTP (HyperText Transfer Protocol) HTTP is a protocol for fetching resources such as HTML documents. It is the foundation of any data exchange on the Web and it is a client-server protocol. 2. HTTP/3 HTTP/3 is the next major revision of the HTTP. It runs on QUIC, a new transport protocol designed for mobile-heavy internet usage. It relies on UDP instead of TCP, which enables faster web page responsiveness. VR applications demand more bandwidth to render intricate details of a virtual scene and will likely benefit from migrating to HTTP/3 powered by QUIC. 3. HTTPS (HyperText Transfer Protocol Secure) HTTPS extends HTTP and uses encryption for secure communications. 4. WebSocket WebSocket is a protocol that provides full-duplex communications over TCP. Clients establish WebSockets to receive real-time updates from the back-end services. Unlike REST, which always “pulls” data, WebSocket enables data to be “pushed”. Applications, like online gaming, stock trading, and messaging apps leverage WebSocket for real-time communication. 5. TCP (Transmission Control Protocol) TCP is is designed to send packets across the internet and ensure the successful delivery of data and messages over networks. Many application-layer protocols build on top of TCP. 6. UDP (User Datagram Protocol) UDP sends packets directly to a target computer, without establishing a connection first. UDP is commonly used in time-sensitive communications where occasionally dropping packets is better than waiting. Voice and video traffic are often sent using this protocol. 7. SMTP (Simple Mail Transfer Protocol) SMTP is a standard protocol to transfer electronic mail from one user to another. 8. FTP (File Transfer Protocol) FTP is used to transfer computer files between client and server. It has separate connections for the control channel and data channel. – Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
5
109
3
415
27,419
Amonce DEMBELE retweeted
Comparing Different API Clients: Postman vs. Insomnia vs. ReadyAPI vs. Thunder Client vs. Hoppscotch Postman is a widely used API lifecycle platform. It emerges as a comprehensive and versatile API client suitable for enterprise-level development. Its support for a wide range of protocols, robust feature set, and strong performance make it a top choice for complex projects. With an intuitive design, collaboration features, and a large community, Postman excels in scenarios requiring extensive functionality and community support. Insomnia is a powerful API client with extensive features and being completely open-source makes it a good choice for developers seeking flexibility and continuous growth. Insomnia is suited for those who value an open-source environment and an active community. ReadyAPI, with its simplicity and focus on smaller projects, is an ideal choice for scenarios where a lightweight and responsive tool is preferred. It provides essential features, making it suitable for projects with less complexity. However, it may not be the best fit for larger, more intricate endeavors that require extensive functionality. ThunderClient, a VS Code plugin, is free and user-friendly, catering to developers who prefer an integrated testing environment. However, it lacks extensive features and community support, crucial for larger or complex projects, rendering it more appropriate for smaller teams with simpler requirements. Additionally, its reliance on Visual Studio Code may restrict its appeal to users who prefer alternative development environments. Experienced users accustomed to feature-rich tools may encounter a learning curve and might find ThunderClient lacking in certain functionalities. Hoppscotch, a free and open-source tool, focuses on functionality over design, offering a lightweight web version with support for various protocols. While it lacks extensive documentation and community support, it provides a cost-effective solution for developers seeking simplicity. Over to you: Which API client do you prefer? – Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
10
144
2
554
40,430
Amonce DEMBELE retweeted
Linux file permission illustrated. To understand Linux file permissions, we need to understand Ownership and Permission. 𝐎𝐰𝐧𝐞𝐫𝐬𝐡𝐢𝐩 Every file or directory is assigned 3 types of owner: 🔹Owner: the owner is the user who created the file or directory. 🔹Group: a group can have multiple users. All users in the group have the same permissions to access the file or directory. 🔹Other: other means those users who are not owners or members of the group. 𝐏𝐞𝐫𝐦𝐢𝐬𝐬𝐢𝐨𝐧 There are only three types of permissions for a file or directory. 🔹Read (r): the read permission allows the user to read a file. 🔹Write (w): the write permission allows the user to change the content of the file. 🔹Execute (x): the execute permission allows a file to be executed. Over to you: what are some of the commonly used Linux commands to change file permissions? – Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
1
104
3
417
27,518
SUCCESS REQUIRES REPLACEMENT: Alcohol —> Water Netflix —> Reading Overthinking—> Action Scrolling —> Exercise Complaining —> Gratitude Toxic Friends —> Mentors All-nighters —> Sleep Blame —> Accountability Fast food —> Homemade food
510
5,947
256
29,332
6,165,278
Une vulnérabilité avec un score CVSS de 10 a été découverte dans le noyau Linux, seuls les systèmes avec ksmbd activé sont concernés.
1
39
#When you have nothing to lose you have everything to gain
Comment traduire des nombres en lettres en Français dans C# et VB.net ? tutswinds.com/comment-tradui…
Transmettre dynamiquement les informations de connexion à la base de données à Crystal Report dans VB.NET et C#.NET tutswinds.com/transmettre-dy…
Comment créer une zone de texte numérique en C# et VB.net ? tutswinds.com/creer-zone-de-…
Comment convertir une vidéo en MP3 avec VLC Media player ? tutswinds.com/convertir-vide…
Comment trouver des doublons dans une table en SQL tutswinds.com/trouver-doublo…
Comment importer des données Excel dans MySQL avec phpMyAdmin tutswinds.com/comment-import…
Comment intégrer Eloquent dans Codeigniter 4 tutswinds.com/integrer-eloqu…