EP99: What is the best way to learn SQL?

EP99: What is the best way to learn SQL?

This week’s system design refresher: Top 6 Tools to Turn Diagrams into Beautiful Code (Youtube video) How do you pay from your digital wallet, such as Paypal, Paytm and Venmo, by scanning the QR code? What is the best way to learn SQL? What is gRPC?
͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­͏ ‌     ­
Forwarded this email? Subscribe here for more

This week’s system design refresher:

  • Top 6 Tools to Turn Diagrams into Beautiful Code (Youtube video)

  • How do you pay from your digital wallet, such as Paypal, Paytm and Venmo, by scanning the QR code?

  • What is the best way to learn SQL?

  • What is gRPC?


Meet New Relic AI, the First Generative AI Observability Assistant (Sponsored)

New Relic AI makes it easy for you to get the insights you need without having to make sense of tons of telemetry data. Cut through the noise to get the right answers quickly and easily. New Relic AI leverages OpenAI’s large language models (LLMs) so that any engineer can use everyday language and a familiar chat interface to ask questions and get insights, without prior observability experience. Observability is now as simple as asking New Relic AI, “Why is my cart not working?” or “Instrument my AWS.”

Try New Relic AI for free


Top 6 Tools to Turn Diagrams into Beautiful Code


How do you pay from your digital wallet, such as Paypal, Paytm and Venmo, by scanning the QR code?

diagram

To understand the process involved, we need to divide the “scan to pay” process into two sub-processes:

  1. Merchant generates a QR code and displays it on the screen

  2. Consumer scans the QR code and pays

Here are the steps for generating the QR code:

  1. When you want to pay for your shopping, the cashier tallies up all the goods and calculates the total amount due, for example, $123.45. The checkout has an order ID of SN129803. The cashier clicks the “checkout” button.

  2. The cashier’s computer sends the order ID and the amount to PSP.

  3. The PSP saves this information to the database and generates a QR code URL.

  4. PSP’s Payment Gateway service reads the QR code URL.

  5. The payment gateway returns the QR code URL to the merchant’s computer.

  6. The merchant’s computer sends the QR code URL (or image) to the checkout counter.

  7. The checkout counter displays the QR code.

These 7 steps complete in less than a second. Now it’s the consumer’s turn to pay from their digital wallet by scanning the QR code:

  1. The consumer opens their digital wallet app to scan the QR code.

  2. After confirming the amount is correct, the client clicks the “pay” button.

  3. The digital wallet App notifies the PSP that the consumer has paid the given QR code.

  4. The PSP payment gateway marks this QR code as paid and returns a success message to the consumer’s digital wallet App.

  5. The PSP payment gateway notifies the merchant that the consumer has paid the given QR code.


Latest articles

If you’re not a paid subscriber, here’s what you missed this month.

  1. How do We Design for High Availability?

  2. Good Code vs. Bad Code

  3. Mastering Design Principles - SOLID

  4. A Crash Course in Networking

  5. Netflix: What Happens When You Press Play - Part 2

To receive all the full articles and support ByteByteGo, consider subscribing:


What is the best way to learn SQL?

No alt text provided for this image

In 1986, SQL (Structured Query Language) became a standard. Over the next 40 years, it became the dominant language for relational database management systems. Reading the latest standard (ANSI SQL 2016) can be time-consuming. How can I learn it?

There are 5 components of the SQL language:

  • DDL: data definition language, such as CREATE, ALTER, DROP

  • DQL: data query language, such as SELECT

  • DML: data manipulation language, such as INSERT, UPDATE, DELETE

  • DCL: data control language, such as GRANT, REVOKE

  • TCL: transaction control language, such as COMMIT, ROLLBACK

For a backend engineer, you may need to know most of it. As a data analyst, you may need to have a good understanding of DQL. Select the topics that are most relevant to you.

Over to you: What does this SQL statement do in PostgreSQL: “select payload->ids->0 from events”?


What is gRPC?

The diagram below shows important aspects of understanding gRPC.

gRPC is a high-performance, open-source universal RPC (Remote Procedure Call) framework initially developed by Google. It leverages HTTP/2 for transport, Protocol Buffers as the interface description language, and provides features such as authentication, load balancing, and more. gRPC is designed to enable efficient and robust communication between services in a microservices architecture, making it a popular choice for building distributed systems and APIs.

Key Features of gRPC:

  1. Protocol Buffers: By default, gRPC uses Protocol Buffers (proto files) as its interface definition language (IDL). This makes gRPC messages smaller and faster compared to JSON or XML.

  2. HTTP/2 Based Transport: gRPC uses HTTP/2 for transport, which allows for many improvements over HTTP/1.x.

  3. Multiple Language Support: gRPC supports a wide range of programming languages.

  4. Bi-Directional Streaming: gRPC supports streaming requests and responses, allowing for the development of sophisticated real-time applications with bidirectional communication like chat services.

 
Like
Comment
Restack
 

© 2024 ByteByteGo
548 Market Street PMB 72296, San Francisco, CA 94104
Unsubscribe

Get the appStart writing


by "ByteByteGo" <bytebytego@substack.com> - 11:38 - 17 Feb 2024