‹ BackHN Continuity

Thread

We need to stop using Stored Procedures

17 points · 32 comments · snikolaev

  1. est · · focus · HN ↗
    I think stored procedures are just strong typed "serverless lambdas" which runs really, really close do your data storage.
    1. degamad · · focus · HN ↗
      Yes, this!

      The ancient wisdom which advocated for stored procedures, which modern developers find distasteful, were really advocating for microservices close to your data, which encapsulated security, business logic, and data persistence so that multiple consumers could share the same data without repeating the logic and code.

      The fact that some people write those microservices in PL/SQL and some in JavaScript doesn't change the relevance of the encapsulation.

      1. jeremyjh · · focus · HN ↗
        But PL/SQL is a horrifying language. You have barely any facilities for modularity, encapsulation or composition. Every procedure is just one name in a huge flat name space. Development tools are primitive. The language is absurdly verbose - it was state of the art in the 1970s when COBOL reigned supreme.
        1. est · · focus · HN ↗
          This is an implementation problem, you can introduce a JIT'd language plus some "container" with "versioned deployments" in modern DB clusters.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.