CS

Notes around database

Introduction Random notes and summary of database. Connection pooling Connection pooling is a technique to keep the reusable open database connections so that applications do not need to open and close a new connection for every request. Why connections are expensive: Creating a connection requires TCP handshake The DB must authenticate and allocate memory/resources PostgreSQL forks a process per connection MySQL creates a thread per connection (context switching for thread is 5x faster than process) Connection Pool Size Formula (HikariCP recommendation):

ネットワークについて(About network)

TCP/IP Transmission Control Protocol / Internet Protocol)は通信を実現する基盤技術 中でも「通信の信頼性を確保する」役割を担っているのが TCP IP とは Internet Protocol IP とは、複数の通信ネッ

オペレーティングシステム(OS)

Operating System とコンピューターシステム プログラムとは 入力デバイス、ネットワークアダプタを介してコンピューターに何らかの処理を依頼する。 メモリ上に存在す