TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: SQLite for Classified Ads Website?

2 pointsby danny_sf45almost 4 years ago
I will build a very simple classified ads website where I have:<p>- around 500-1K ads will be published per day. Login required<p>- around 10K-20K visitors per day. No login required<p>- simple search (by category, free text field) and sorting (by date). No login required<p>- one paginated homepage where ads are displayed by date, and one page to see the details of a specific ad<p>- no images. It&#x27;s all text-based<p>My plan is to use nginx + Go + SQLite + redis. Big assumption I&#x27;m making here is that the website is heavy on reads and very lightweight on writes (reasonable assumption since I maintained a similar website some years ago, so I have some experience in this regard). Also, I don&#x27;t see the website growing in the near future (I have numbers that say that traffic will remain as stated above at least for 1 year).<p>Do you think SQLite will be enough? Main reason to not use MySQL&#x2F;Postgres is: maintenance, simplicity but above all I think it will be overkill. Also, I&#x27;m planning to heavily cache searches (either on nginx side or redis). So, what do you think?

2 comments

onion2kalmost 4 years ago
SQLite is easily fast enough for what you propose, but if you&#x27;re worried about it design a way to test it. Measure first, then optimize.<p>Plus, if you build it in a way that enables you to scale up (vertically to a &#x27;better&#x27; database or horizontally to more SQLite databases) it won&#x27;t even matter.
zenincognitoalmost 4 years ago
Yup no problem.<p>Straight fro. The horse&#x27;s mouth<p><a href="https:&#x2F;&#x2F;www.sqlite.org&#x2F;whentouse.html" rel="nofollow">https:&#x2F;&#x2F;www.sqlite.org&#x2F;whentouse.html</a><p>Below 100k hits should be fine. Note its hits not users. But, have used Sqlite on 25k visitors per day site with no issues.