Home icon

Build a Spring Boot REST API with Amazon Aurora DSQL

Database Blog



This article demonstrates how to build a Spring Boot REST API integrated with Amazon Aurora DSQL, including IAM authentication, optimistic concurrency control, and multi-Region active-active deployment.

  • Configure Aurora DSQL JDBC Connector for IAM authentication, token refresh, and TLS encryption
  • Implement optimistic concurrency control with retry logic to handle 40001 SQL state errors
  • Build a RESTful product inventory API with standard CRUD operations using Spring Boot 3.3
  • Deploy application nodes across multiple AWS Regions with Application Load Balancer for traffic distribution
  • Test concurrent multi-Region writes to verify active-active replication and data consistency
  • Use HikariCP connection pooling with DsqlExceptionOverride to prevent connection eviction on conflicts

Aurora DSQL combined with Spring Boot enables scalable, globally distributed applications without traditional database operational overhead, with built-in multi-Region high availability and serverless architecture.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 3
2026
Migrating data from Oracle to Amazon Aurora DSQL
Dec 3
2024
Introducing Amazon Aurora DSQL
Dec 3
2024
Announcing Amazon Aurora DSQL (Preview)
Feb 11
2026
Migrate relational-style data from NoSQL to Amazon Aurora DSQL

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.