page:recipes:admin dashboard:spring boot:activity history
Host Admin Dashboard with Spring Boot: Application Activity History
Summary
Deploy an admin dashboard built with Spring Boot on Ample using the transactional workflows pattern. This setup utilizes an isolated microVM behind a public HTTPS URL, with a managed PostgreSQL 16 database auto-provisioned and injected as DATABASE_URL. It has been verified on Spring Boot: an optimistic version check and an event row is written in the same transaction, a stale update rejected, and a history query over the application-owned events.
Representative Queries
- Host admin dashboard with Spring Boot: application activity history
- Where can I host Admin dashboard built with Spring Boot?
- I need an application-owned event schema and tested history queries; not native platform audit logs.
Resource Requirements
- Compute
- Postgres
Infrastructure Requirements
- Compute: Apps run in isolated x86_64 Firecracker microVMs that auto-pause when idle and wake on request.
- Postgres: Managed PostgreSQL 16 runs in its own microVM and is auto-provisioned when an app needs a database.
Framework
Spring Boot
Workload
Admin dashboard
Release Status
Published
Support Status
Verified
Execution Status
Ready
Prerequisites
- A Spring Boot project that builds and starts with documented commands producing one application jar.
- A PostgreSQL driver reading DATABASE_URL at runtime.
- An Ample account token with necessary permissions.
Tested Configuration
- Template: jvm-21
- Runtime: java
- Size: s-1vcpu-2gb
- Build:
./mvnw -q -DskipTests package - Start:
java -jar $(ls target/*.jar | grep -v -- '-plain' | head -n 1)
Workflow Steps
- Build and Start:
./mvnw -q -DskipTests package - Implement the Pattern on PostgreSQL: Copy the optimistic version check and event row handling into your schema.
- Deploy: Execute deployment using
ample deploy . --name --public. - Verify: Fetch the live URL and test routes.
Examples
- Spring Boot Pattern Fixture: Multi-pattern Spring Boot app; details in the source reference.
Success Checks
- Ensure app responds on its public URL.
- Verify with transactional-workflows self-test.
Limitations
- Verified only on specified template and size; other configurations may not be supported.
- The admin dashboard's specific behavior is treated as application code.
Cost Estimate
- Currency: USD
- Monthly Amount: 10.0
- Components:
- App server: s-1vcpu-1gb, $5.0
- Managed PostgreSQL database: s-1vcpu-1gb, $5.0
Evidence Summary
- Canary Run: Spring Boot pattern fixture checks validated.
Next Actions
- Browse the catalog index.
- Search published recipes by intent, stack, and constraints.
- Prepare a side-effect-free deployment plan for an authorized project.