Live data from Hacker News

Viewing profile — hruk

hruk

HN member
Joined
Sat, Jan 20, 2024, 1:28 PM UTC
HN karma
80
Public activity
35 items

About hruk

No profile information was provided.

Recent public activity

  1. comment
  2. comment
    Comment #45782763

    Roughly 80/20 read to write. On the instance's gp3 EBS volume (which is pretty slow), we've pushed ~700 write transactions per second without much problem.

  3. comment
    Comment #45782075

    This is just untrue - the naive implementation (make the API call, write a single row to the db) will work fine, as transactions are quite fast on modern hardware. What do you cons…

  4. comment
    Comment #45436479

    This is basically Breiman's "two cultures" at play. Do you care about optimizing y-hat, or do you care about doing inference on some parameters in your model? Depends on the busine…

  5. comment
    Comment #45432655

    You can do fairly well here with ridge regression as a poor man's hierarchical model. We've used this library's Bayesian ridge regression to support a geo-pricing strategy (and it …

  6. comment
    Comment #45217099

    All databases are painful in their own way. I've used all three at various times in my career, and I think SQLite behaves quite predictably, which has made it a lot easier for me p…

  7. comment
    Comment #45088753

    Agree on many things here, but SQLite does support WAL mode which supports 1 writer/N writer readers with snapshot isolation on reads. Writes are serialized but still quite fast. S…

  8. comment
    Comment #44347722

    We've used this Python package to do this: https://github.com/bayesianbandits/bayesianbandits

  9. comment
    Comment #44114369

    Yep, we use Litestream. It's been very reliable.

  10. comment
    Comment #44106236

    FWIW, I've been running a system with roughly 100K users, about 25 qps on average, with a single SQLite file for several years. No issues with data.

  11. comment
    Comment #43135191

    We've used this library for Bayesian contextual bandits in production (we have a critical business use case supported by a ~200K feature sparse Linear UCB bandit). It's a small com…

  12. comment
    Comment #43096983

    We do zero-downtime deployments with a single Docker volume containing the db. Spin up a container running the new code, wait til it's healthy, then kill the old container.

  13. comment
    Comment #43091712

    We have some analytics queries powered by Airflow running on a separate box. We set up Litestream to replicate to that box via SFTP, and then dump changes hourly into Snowflake.

  14. comment
    Comment #43089908

    You are still correct for network filesystems, but there are no issues opening multiple connections on the same host (even across OCI container boundaries).

  15. comment
    Comment #43089627

    You can have as many connections from as many processes as you want.

  16. comment
    Comment #43088778

    Yes, we've used the Litestream + SQLite + Go webserver route in production for several years and while we've had to deal with all of these issues, on the whole I don't have a stron…

  17. comment
    Comment #42711611

    No, you definitely have to pick your battles. Something that you want to continuously optimize over time makes a lot more sense than something where it's reasonable to test and the…

  18. comment
    Comment #42711469

    Indeed, we are well aware.

  19. comment
    Comment #42693146

    I don't know, all of these are pretty surmountable. We've done dynamic pricing with contextual multi-armed bandits, in which each context gets a single decision per time block and …

  20. comment
    Comment #42686565

    We've been happy using Thompson sampling in production with this library https://github.com/bayesianbandits/bayesianbandits

  21. comment
    Comment #42669898

    Nah, just SQLite. I had to learn a number of things about good SQLite defaults and habits, but that was years back before it really started to take off in this space. Now, there ar…

  22. comment
    Comment #42570513

    I use SQLite for this sort of thing (small e-commerce storefront, wife's niche popular blog, etc.). Actually, I use multiple - one for the DB and Diskcache for the cache. Caching i…

  23. comment
    Comment #40657545

    Indeed. I've found that as long as you store your database on a modern NVMe drive, you can easily push 5K+ write transactions per second with SQLite. I've worked at very large comp…

  24. comment
    Comment #40657392

    You can have multiple containers on the same host use the same db via Docker volumes - we have a number of production services set up this way.

  25. comment
    Comment #40019973

    I've used HTMX quite frequently recently for internal frontends (admin pages, reporting, etc.). It's quite good. A pattern I've been using a lot is not changing the backend at all …