Alex Xu Profile picture
Oct 26 โ€ข 10 tweets โ€ข 3 min read
/1 Why is PostgreSQL voted the ๐ฆ๐จ๐ฌ๐ญ ๐ฅ๐จ๐ฏ๐ž๐ ๐๐š๐ญ๐š๐›๐š๐ฌ๐ž by Stackoverflow 2022 Developer Survey?

The diagram shows the many use cases by PostgreSQL - one database that includes almost ๐š๐ฅ๐ฅ ๐ญ๐ก๐ž ๐ฎ๐ฌ๐ž ๐œ๐š๐ฌ๐ž๐ฌ developers need. Image
/2 ๐Ÿ”นOLTP (Online Transaction Processing)

We can use PostgreSQL for CRUD (Create-Read-Update-Delete) operations. Image
/3 ๐Ÿ”นOLAP (Online Analytical Processing)

We can use PostgreSQL for analytical processing. PostgreSQL is based on ๐‡๐“๐€๐ (Hybrid transactional/analytical processing) architecture, so it can handle both OLTP and OLAP well. Image
/4 ๐Ÿ”นFDW (Foreign Data Wrapper)

A FDW is an extension available in PostgreSQL that allows us to access a table or schema in one database from another. Image
/5 ๐Ÿ”นStreaming

PipelineDB is a PostgreSQL extension for high-performance time-series aggregation, designed to power real-time reporting and analytics applications. Image
/6 ๐Ÿ”นGeospatial

PostGIS is a spatial database extender for PostgreSQL object-relational database. It adds support for geographic objects, allowing location queries to be run in SQL. Image
/7 ๐Ÿ”นTime Series

Timescale extends PostgreSQL for time series and analytics. For example, developers can combine relentless streams of financial and tick data with other business data to build new apps and uncover unique insights. Image
/8 ๐Ÿ”นDistributed Tables

CitusData scales Postgres by distributing data & queries. Image
/9 ๐Ÿ‘‰ Over to you: Which database do you like the most?
/10 I hope you've found this thread helpful.

Follow me @alexxubyte for more.

Like/Retweet the first tweet below if you can:

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with Alex Xu

Alex Xu Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @alexxubyte

Oct 20
/1 What are the differences between B-Tree and LSM-Tree? Image
/2 ๐-๐“๐ซ๐ž๐ž

B-Tree is the most widely used indexing data structure in almost all relational databases.

The basic unit of information storage in B-Tree is usually called a โ€œpageโ€. To look up a key, it traces down the range of keys until the actual value is found. Image
/3 ๐‹๐’๐Œ-๐“๐ซ๐ž๐ž

LSM-Tree (Log-Structured Merge Tree) is widely used by many NoSQL databases, such as Cassandra, LevelDB, and RocksDB.

LSM-trees maintain key-value pairs and are persisted to disk using a Sorted Strings Table (SSTable), in which the keys are sorted. Image
Read 6 tweets
Oct 19
/1 Is Telegram secure?

Letโ€™s first define what โ€œsecureโ€ means. A โ€œsecureโ€ chat in a messaging App generally means the message is encrypted at the sender side and is only decryptable at the receiver side. It is also called โ€œE2EEโ€ (end-to-end encryption).
/2 ๐“๐ž๐ฅ๐ž๐ ๐ซ๐š๐ฆ'๐ฌ ๐ฎ๐ฌ๐ฎ๐š๐ฅ ๐ฉ๐ซ๐ข๐ฏ๐š๐ญ๐ž ๐š๐ง๐ ๐ ๐ซ๐จ๐ฎ๐ฉ ๐œ๐ก๐š๐ญ๐ฌ ๐š๐ซ๐ž๐ง'๐ญ ๐ž๐ง๐-๐ญ๐จ-๐ž๐ง๐ ๐ž๐ง๐œ๐ซ๐ฒ๐ฉ๐ญ๐ž๐

It generally means third parties can intercept and read your messages. Telegram uses the following approach for security:
/3 ๐Ÿ”ธThe encrypted message is stored in Telegram servers, but split into several pieces and stored in different countries.

๐Ÿ”ธThe decryption keys are also split and saved in different countries.
Read 8 tweets
Oct 17
/1 What protocol does ๐จ๐ง๐ฅ๐ข๐ง๐ž ๐ ๐š๐ฆ๐ข๐ง๐  use to transmit data? TCP or UDP?

A common practice is to use RUDP (Reliable UDP). It adds a ๐ซ๐ž๐ฅ๐ข๐š๐›๐ฅ๐ž mechanism on top of UDP so that it provides ๐ฆ๐ฎ๐œ๐ก ๐ฅ๐จ๐ฐ๐ž๐ซ ๐ฅ๐š๐ญ๐ž๐ง๐œ๐ฒ than TCP and guarantees accuracy.
/2 The diagram below shows how reliable data delivery is implemented in online gaming to get eventually-synchronized states.
/3 Suppose there is a big fight in a simulation shooter game. Characters A, B, and C open fires in sequence. How does the game server transmit the states from the game server to the game client?
Read 8 tweets
Oct 13
/1 How do fintech startups find new opportunities among so many payment companies? What do PayPal, Stripe, and Square do exactly? ๐Ÿ‘‡
/2 ๐Ÿ”ธSteps 0-1: The cardholder opens an account in the issuing bank and gets the debit/credit card. The merchant registers with ISO or MSP (Member Service Provider) for in-store sales. ISO/MSP partners with payment processors to open merchant accounts.
/3 ๐Ÿ”ธSteps 2-5: The acquiring process.

The payment gateway accepts the transaction and collects payment info. It is then sent to a payment processor, which uses customer information to collect payments. The acquiring processor sends the transaction to the card network.
Read 6 tweets
Oct 10
/1 ๐–๐ก๐š๐ญ ๐ข๐ฌ ๐–๐ž๐› 3.0? Why doesnโ€™t it have ๐š๐๐ฌ?

The diagram below shows Web 1.0/Web 2.0/Web 3.0 from a bird's-eye view.
/2 ๐Ÿ”นWeb 1.0 - Read Only

Between 1991 and 2004, the internet is like a ๐œ๐š๐ญ๐š๐ฅ๐จ๐  of ๐ฌ๐ญ๐š๐ญ๐ข๐œ ๐ฉ๐š๐ ๐ž๐ฌ. We can browse the content by jumping from one hyperlink to another. It doesnโ€™t provide any interactions with the content.
/3 ๐Ÿ”นWeb 2.0 - Read Write

From 2004 to now, the internet has evolved to have search engines, social media apps, and recommendation algorithms backed apps.
Read 9 tweets
Oct 9
/1 Iโ€™ve been writing the system design newsletter for 6 months. Here are the 5 most popular ones: ๐Ÿ‘‡

Link: blog.bytebytego.com Image
/2 Proxy vs reverse proxy: blog.bytebytego.com/p/ep25-proxy-vโ€ฆ Image
/3 Design patterns cheat sheet: blog.bytebytego.com/p/ep17-design-โ€ฆ Image
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(