Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    J

    Jeremy Daly

    jeremydaly.com · Personal blog · on HN since 2018

    Jeremy Daly writes about serverless architecture on AWS, covering Lambda, Aurora Serverless, microservice patterns and database connection handling.

    Visit blogRSSHN submissions
    DevOps & CloudDatabases
    What HN says

    Commenters cite it for practical details on Aurora Serverless capacity, connection limits and early performance, and for reusing database connections across Lambda invocations.

    Stats for nerds
    26HN people shared it
    30linked in comments
    150story points
    Jan 2024last shared
    2018people per year2024

    Top posts on HN

    1. 1
      Finding my rhythm again
      2 people · 68 points · first shared 2025 · 6 comments on HN
    2. 2
      Serverless Microservice Patterns for AWS
      2 people · 28 points · first shared 2018 · 3 comments on HN
    3. 3
      Aurora Serverless Data API: A First Look
      6 people · 8 points · first shared 2018 · Discussion on HN
    4. 4
      Managing MySQL at Serverless Scale
      3 people · 6 points · first shared 2019 · Discussion on HN
    5. 5
      The Serverless Reference Architectures Project
      2 people · 4 points · first shared 2020 · Discussion on HN
    6. 6
      An Introduction to Serverless Microservices
      2 people · 4 points · first shared 2018 · Discussion on HN
    7. 7
      15 Key Takeaways from the Serverless Talk at AWS Startup Day
      1 person · 4 points · first shared 2018 · Discussion on HN
    8. 8
      Is learning serverless that hard?
      1 person · 4 points · first shared 2022 · Discussion on HN
    9. 9
      Serverless Reference Architectures
      1 person · 3 points · first shared 2020 · Discussion on HN
    10. 10
      The Storage First Pattern (2020)
      1 person · 3 points · first shared 2021 · Discussion on HN

    What HN people wrote when they linked it

    • mattlordMay 2022

      It's fairly difficult to find actual details on ACUs and how it all works, the best I found after spending significant time looking was things like:
      https://www.jeremydaly.com/aurora-serverless-the-good-the-bad-and-the-scalable/

      According to AWS you're paying for chunks of CPU and memory on a per second basis: https://aws.amazon.com/rds/aurora/faqs/

      It's hard to imagine that the CPU capacity is measured in anything other than CPU cycles (time slices of physical capacity) — in the same way it's hard to imagine that the memory capacity is measured in anything but bytes. But whatever, I don't care. It's cool, good for them. The point was... you don't think you're paying for reads of records that are cached? I give up, I fail to see how this can really be a good faith discussion.

      I don't know how all other serverless database offerings do pricing. What difference does it make? They're all different. As a user, you want it to be based on your usage and to be fairly and reasonably priced while also being easily audited and predictable. Those are the key properties I would care about.

      I honestly cannot see how you could be missing the point by this much and still be operating in good faith so I'll for real, for real stop. :-)

    • astuyvenbergJul 2020

      Lambda may not be a magic reliability wand, you definitely still need to manage downstream pressure.
      That said:

      > The code creates a MySQL connection during each invocation.

      This is not a correct implementation for Lambda.

      You shouldn't recreate a connection on every invocation. Instead, create your connection outside of your handler code. Then each invocation of a warm container will re-use the same handler. (1)

      This will help cut down on cold start time, as well as help manage running out of connections.

      You should limit your maximum number of concurrent invocations to be equal to the limit of your database threadpool. This is all in their documentation, as well as several blog posts. (2, 3, 4)

      [1] https://docs.aws.amazon.com/lambda/latest/dg/services-rds-tutorial.html

      [2] https://www.jeremydaly.com/reuse-database-connections-aws-lambda/

      [3] https://medium.com/faun/reusing-connections-lambda-functions-poc-1eb8068fd1db

    • davidjnelsonAug 2019

      It’s interesting that lambda still requires a nosql db for good perf. The example they link to from this article uses dynamodb. Not a great choice for a general purpose web app, where sql would be a better choice for many use cases.

      https://github.com/serverless/components/tree/master/templates/8-fullstack-application

      It’s cool that aws has the data api for lambda to connect to aurora serverless. But then you’re stuck with MySQL instead of postgres, and also stuck with ~100ms db access times.

      https://www.jeremydaly.com/aurora-serverless-data-api-a-first-look/

    • PetahNZDec 2019

      It has a hard limit on max_connections based on the "Aurora Capacity Unit", e.g. for 16 ACU's max_connections it is 2,000. We see spikes of 10x to 100x concurrent users in a matter of minutes (think hug of death style). And although our queries run fast and we see limited increase of CPU on the cluster we almost instantly hit the connection limit.

      https://www.jeremydaly.com/aurora-serverless-the-good-the-bad-and-the-scalable/

    • josevalerioJan 2024

      Declare your connection outside of your handler function - this post is from 2017 but it shows it clearly:

      https://www.jeremydaly.com/reuse-database-connections-aws-lambda/

      It will get re-used across lambda invocations as long as the instance of it isn't killed which typically happens after a few minutes

    • petercooperMay 2019

      If you're into serverless stuff and you like this personal feel, you might like Jeremy Daly's Off by None: https://www.jeremydaly.com/newsletter-issue-35/ .. I think it takes that chatty newsletter approach quite far.

    Related

    Chris Richardsonmicroservices.io58 people

    A pattern language for microservices

    Chris Richardson
    Personal · last shared 2026
    Werner Vogelsallthingsdistributed.com297 people

    Continuous reinvention: A brief history of block storage at AWS

    Werner Vogels
    Personal · last shared 2026
    A Cloud Guru Blogread.acloud.guru53 people

    Things to know before using AWS’s Elasticsearch Service

    A Cloud Guru Blog
    Company · last shared 2020
    The Morning Paperblog.acolyer.org606 people

    Local-first software: you own your data, in spite of the cloud

    The Morning Paper
    Personal · last shared 2026
    ScyllaDB Blogscylladb.com167 people

    How io_uring and eBPF Will Revolutionize Programming in Linux

    ScyllaDB Blog
    Company · last shared 2026
    Last Week in AWSlastweekinaws.com184 people

    Why I Turned Down an AWS Job Offer

    Last Week in AWS
    Personal · last shared 2026
    Uber Engineering Blogeng.uber.com525 people

    Why Uber Engineering Switched from Postgres to MySQL

    Uber Engineering Blog
    Company · last shared 2025
    cloudonautcloudonaut.io35 people

    AWS mistakes to avoid

    cloudonaut
    Company · last shared 2024