Database / SQLite Interview questions
How is SQLite different from client-server databases like MySQL or PostgreSQL?
MySQL and PostgreSQL run as standalone server processes that clients connect to over a network (or a local socket), meaning multiple applications on different machines can share the same database concurrently through that server. SQLite has no server at all — the database engine is a library linked directly into the application process, reading and writing straight to a local file.
| SQLite | MySQL/PostgreSQL |
| Serverless; embedded in the application process. | Client-server; a separate daemon process. |
| Single file on local disk. | Managed storage, often across multiple files/disks. |
| Best for single-application or local storage. | Built for many concurrent clients over a network. |
| No user accounts/network security layer of its own. | Built-in authentication, users, network access control. |
This makes SQLite the natural fit for a mobile app's local storage or a desktop app's data file, while MySQL/PostgreSQL fit a shared backend serving many client applications or users simultaneously.
More Related questions...