Skip to content

About

A Spring Boot demo application demonstrating write and read connections with PostgreSQL using HikariCP, HAProxy, and PgBouncer for efficient database management.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Getting Started

Overview

This project demonstrates a Spring Boot application with PostgreSQL as the database. It supports both read and write operations and integrates with Prometheus for metrics collection. Additionally, the application can be containerized using Docker.

Features

  • Spring Boot with PostgreSQL: Provides a structured way to interact with relational databases.
  • Read and Write Operations: Optimized for efficient data access.
  • Prometheus Metrics: Collects and exposes application metrics for monitoring.
  • Docker Support: Easily deployable with Docker Hub integration.

Prometheus Integration

The application is configured to expose metrics in a Prometheus-compatible format. These metrics help in monitoring database connections, query performance, and overall application health.

Docker Hub Repository

The application is available on Docker Hub: Docker Hub - Demo App

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Testcontainers Support

This project uses Testcontainers at development time.

Testcontainers has been configured to use the following Docker images:

Please review the tags of the used images and set them to the same as you're running in production.

Maven Parent Overrides

Due to Maven's design, elements are inherited from the parent POM to the project POM. While most of the inheritance is fine, it also inherits unwanted elements like <license> and <developers> from the parent. To prevent this, the project POM contains empty overrides for these elements. If you manually switch to a different parent and actually want the inheritance, you need to remove those overrides.

About

A Spring Boot demo application demonstrating write and read connections with PostgreSQL using HikariCP, HAProxy, and PgBouncer for efficient database management.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages