Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
cm0002 ( cm0002@toast.ooo )  to Programming@programming.dev · 4 months ago

All you need is PostgreSQL

ebellani.github.io

external-link
message-square
11
link
fedilink
  • cross-posted to:
  • programming@lemmy.ml
  • postgresql@programming.dev
26
external-link

All you need is PostgreSQL

ebellani.github.io

cm0002 ( cm0002@toast.ooo )  to Programming@programming.dev · 4 months ago
message-square
11
link
fedilink
  • cross-posted to:
  • programming@lemmy.ml
  • postgresql@programming.dev
Introduction The setup Laying the foundation The foundation: schemas and user roles for modularity Domains Accounts, managed and external Transfers, constrained by a state machine and temporal periods Transfer state history Account auditing Transactions, the immutable events On maintaining business rules via meaningful constraints The transfer state machine Transactions must fall within the transfer period Pending transactions require a pending transfer No future transactions when closing a transfer On capacity planning Working set estimation On write throughput Enabling HOT Updates for Transfers Making sure there are no Unused indexes OLTP Listing The history of a transfer OLAP Balance ledger Incremental maintenance via triggers On serializable isolation On decoupling Benchmarking the startup scenario Seed data Write script: full transfer lifecycle Read script: activity stream and balance Running the benchmark Results Conclusion Appendix A: Full code suite. Introduction There is a deep cultural reflex in modern engineering: whenever a problem appears, reach for a packaged solution instead of thinking from first principles. The result is architectural cargo culting and lots of missed opportunities. Some intentionally absurd-but-familiar examples:
  • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍 ( sxan@midwest.social ) 
    link
    fedilink
    English
    arrow-up
    5
    ·
    4 months ago

    I hate admining PostreSQL, and groan when some app I want to use requires it. Don’t get me wrong: in a corp environment where someone else is responsible for backup/restore and permissions, pgsql > *. Tooling for it is great. It has every feature. But if I have to maintain it myself, I’ll chose a single file to copy and back up every time: sqlite FTW.

    • dallen ( dallen@programming.dev ) 
      link
      fedilink
      arrow-up
      3
      ·
      4 months ago

      CloudNativePG with barman backups makes it quite manageable.

      • towerful ( towerful@programming.dev ) 
        link
        fedilink
        arrow-up
        3
        ·
        4 months ago

        Yes. Not wanting to deal with more than a single file for backup/restore of your service?
        Use kubernetes.

        That doesn’t quite track

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 108 users / day
  • 370 users / week
  • 1.72K users / month
  • 4.17K users / 6 months
  • 450 local subscribers
  • 28.8K subscribers
  • 2.97K Posts
  • 23.1K Comments
  • Modlog
  • mods:
  • snowe ( snowe@programming.dev ) 
  • Ategon ( Ategon@programming.dev ) 
  • UlrikHD ( UlrikHD@programming.dev ) 
  • bugsmith ( bugsmith@programming.dev ) 
  • Spyro ( Spyro@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code