Skip to content

omjogani/postgresql-multipartitions

Repository files navigation

PostgreSQL Multi-Partitions

Multi-partition architecture which divides the traffic according to the request type. The server will decide to navigate the request to which Database based on the Request Type. In this example, There are 2 Master Database in the PostgreSQL Database & Golang Server will decide which Database to forward the request to.

Architecture

architectural_figure

Working Example

multipartition-postgresql-demo

Run Locally

Make sure that you have Golang installed in your System!

  • Rename .example-env to .env and add PostGre Username, Password & DB Name.
  • Run the command:
go run github.com/cosmtrek/air
  • Getting an error in above mentioned command? Run...
go get github.com/cosmtrek/air
  • then run the First command.

Technical Details


  • Technology
    • Server: Golang
    • Database: PostgreSQL
    • User Interface: HTML, Tailwind CSS

If you found this useful, make sure to give it a star 🌟

Thank You!!

About

Example of Multi-Partitions in PostgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages