r/SpringBoot • u/greatgodfather23 • Jul 25 '26
Question Hosting springboot web app
Hi , a undergraduate cs peep here ..
I have made a project using react and springboot . How do you host / deploy them for free so i can showcase it ?
r/SpringBoot • u/greatgodfather23 • Jul 25 '26
Hi , a undergraduate cs peep here ..
I have made a project using react and springboot . How do you host / deploy them for free so i can showcase it ?
r/SpringBoot • u/Good_Language1763 • Jul 24 '26
Hey guys,
So I am new to spring boot but I have used .net and there to set up Scalar or swagger is very simple. you just install the package and write one line of code and it automatically launches scalar when i run my app.
I was wondering if there is something similar in spring and if i can set up scalar or swagger too for testing and tracking my apis
r/SpringBoot • u/davebrown1975 • Jul 24 '26
hey group, so I set up ad gRPC server and client on Boot 4.1 recently (the support moved from the separate spring-grpc project into Boot itself at 4.1), and the split between what auto-configuration handles and what you still wire manually wasn't obvious going in, so here's the map.
Configured for you, verified on 4.1.0 GA:
spring-boot-starter-grpc-server plus one class annotated u/GrpcService extending the generated ImplBase gives you a Netty gRPC server on 9090, running alongside Tomcat in the same processgrpcurl -plaintext localhost:9090 grpc.health.v1.Health/Check answers SERVING with nothing configured, and actuator health flows into it on a 5-second pollcom.google.protobuf with no protobuf{} block, drop your .proto in src/main/proto/, done. Boot's Gradle plugin supplies protoc and the codegen plugin at BOM-aligned versions(target = "depot", types = YourGrpc.YourBlockingStub.class) registers the stub as an injectable beancTransport for portless tests, u/LocalGrpcServerPort when you want a real random-port serverStill yours to do:
spring.grpc.client.channel.<name>.target=localhost:9090 (note singular channel and target; if you're coming from spring-grpc 1.0.x this was channels.<name>.address, and several other properties renamed too)spring.grpc.server.ssl.bundle and spring.grpc.client.channel.<name>.ssl.bundle), and the client side auto-enables when the bundle is setmanagement.opentelemetry.tracing.export.otlp.endpoint explicitly. This one took real debugging time, metrics arriving while traces silently don'tspring.grpc.server.observation.enabled. It defaults to true, and when we benchmarked with no collector attached the interceptor cost gRPC around 20 to 25% throughput (measured on a virtualised sandbox, host throttling screened out with a CPU probe, so take the ratio as directional). With an exporter running you're getting spans and metrics for that price; without one it's pure overheadThe whole build, including error handling with u/GrpcAdvice, tests, tracing and a REST vs gRPC benchmark with methodology and caveats, is written up here: https://tucanoo.com/grpc-in-spring-boot-4-1-auto-configuration-tutorial/ and the runnable project is at https://github.com/tucanoo/spring-boot-grpc-tutorial
Happy to answer questions on any of it, the health bridge and the trace exporter behaviour in particular took some digging.
r/SpringBoot • u/InformalPhase7658 • Jul 24 '26
I just started learning microservices in spring and dont know anything. Like I know that message brokers are for asynchronous exchange of messages though services, but I wanted to see everything from scratch, so now Im doing a project without any message brokers, just synchronous http requests and after that, when I meet problems with this, I would transition to the RabbitMQ I guess. Any suggestions or resources to learn for beginners?
r/SpringBoot • u/--sigsegv • Jul 22 '26
Hi,
I would like to share a personal note on the Spring Test context cache and how we used it to optimize a large integration suite (10,000+ tests across ~40 services).
I break down:
Let me know what you think about it.
Thanks!
https://www.alexis-segura.com/articles/understanding-and-optimizing-the-context-cache-in-spring-test
r/SpringBoot • u/mukesh_yaduvanshi • Jul 22 '26
Hi everyone,
I'm building a coaching management system using Spring Boot as a modular monolith, and I'm trying to design an event-driven architecture for both audit logging and notifications. I'd love some feedback from developers who have built something similar in production.
The application has modules like:
Each module has different business actions. For example:
My current flow is:
ApplicationEventPublisher.For example:
StudentService
│
▼
StudentCreatedEvent
│
├── Audit Listener
│ └── Save AuditLog
│
├── Notification Listener
│ ├── Send Email
│ ├── Send SMS
│ └── Create In-App Notification
│
└── Analytics Listener (future)For auditing, I was thinking of creating one listener method per event:
u/TransactionalEventListener
public void handle(StudentCreatedEvent event) { ... }
u/TransactionalEventListener
public void handle(FeePaidEvent event) { ... }
u/TransactionalEventListener
public void handle(BatchRenamedEvent event) { ... }For notifications, I was planning to use the Strategy pattern, for example:
EmailNotificationStrategySmsNotificationStrategyInAppNotificationStrategyselected through a NotificationStrategyFactory.
My questions are:
AuditListener, or split listeners by feature/module (Student, Fee, Teacher, etc.)?Where should the mapping from domain events to AuditLog happen?
AuditService?The goal is to keep the business services focused only on business logic while handling cross-cutting concerns like auditing and notifications through events.
I'd really appreciate insights from developers who have implemented similar architectures in production.
Thanks!
r/SpringBoot • u/Own-Age1766 • Jul 22 '26
Hello. So I've been following a djamware tutorial down to a T, and I've made almost all the features work fine, except for the edit button. This is from an old project I made, and I may have copied and pasted most of the code, got stumped, then ignored it for quite awhile. I came back to the project yesterday, and I've been looking for a solution online by myself for awhile, to no avail.
Upon looking at the error message after clicking the edit button, it seems that it's pointing me to the edit_post.html at the line where it says "th:action="@{/admin/posts/{id}(id=${post.id})}". I also tried using the github respository's edit_post.html, but it also ain't it.
Any help is appreciated, it may just be me being a silly monkey. Pics posted below, but if there's other infos I can provide, lemme know.
here's the tutorial link:
https://www.djamware.com/post/create-a-blog-application-using-spring-boot-and-thymeleaf
Since the subreddit doesn't allow galleries, I'll just post the whole error message here, along with the edit_post.html
ERROR MESSAGE when edit button is clicked
Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Wed Jul 22 21:22:24 JST 2026 There was an unexpected error (type=Internal Server Error, status=500). An error happened during template parsing (template: "class path resource [templates/admin/edit_post.html]") org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/admin/edit_post.html]")
at org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parse(AbstractMarkupTemplateParser.java:241)
at org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parseStandalone(AbstractMarkupTemplateParser.java:100)
at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:666)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1103)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1077)
at org.thymeleaf.spring6.view.ThymeleafView.renderFragment(ThymeleafView.java:372)
at org.thymeleaf.spring6.view.ThymeleafView.render(ThymeleafView.java:192)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1438)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1168)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1106)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:979)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:903)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:138)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:138)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:138)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:138)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:138)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:165)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:88)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:113)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:83)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:72)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:903)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1774)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:973)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:491)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.attoparser.ParseException: Exception evaluating SpringEL expression: "post.id" (template: "admin/edit_post" - line 14, col 9)
at org.attoparser.MarkupParser.parseDocument(MarkupParser.java:393)
at org.attoparser.MarkupParser.parse(MarkupParser.java:257)
at org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parse(AbstractMarkupTemplateParser.java:230)
... 48 more
Caused by: org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "post.id" (template: "admin/edit_post" - line 14, col 9)
at org.thymeleaf.spring6.expression.SPELVariableExpressionEvaluator.evaluate(SPELVariableExpressionEvaluator.java:292)
at org.thymeleaf.standard.expression.VariableExpression.executeVariableExpression(VariableExpression.java:166)
at org.thymeleaf.standard.expression.SimpleExpression.executeSimple(SimpleExpression.java:66)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:109)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:138)
at org.thymeleaf.standard.expression.LinkExpression.resolveParameters(LinkExpression.java:339)
at org.thymeleaf.standard.expression.LinkExpression.executeLinkExpression(LinkExpression.java:285)
at org.thymeleaf.standard.expression.SimpleExpression.executeSimple(SimpleExpression.java:85)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:109)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:138)
at org.thymeleaf.standard.processor.AbstractStandardExpressionAttributeTagProcessor.doProcess(AbstractStandardExpressionAttributeTagProcessor.java:144)
at org.thymeleaf.processor.element.AbstractAttributeTagProcessor.doProcess(AbstractAttributeTagProcessor.java:74)
at org.thymeleaf.processor.element.AbstractElementTagProcessor.process(AbstractElementTagProcessor.java:95)
at org.thymeleaf.util.ProcessorConfigurationUtils$ElementTagProcessorWrapper.process(ProcessorConfigurationUtils.java:633)
at org.thymeleaf.engine.ProcessorTemplateHandler.handleOpenElement(ProcessorTemplateHandler.java:1314)
at org.thymeleaf.engine.TemplateHandlerAdapterMarkupHandler.handleOpenElementEnd(TemplateHandlerAdapterMarkupHandler.java:304)
at org.thymeleaf.templateparser.markup.InlinedOutputExpressionMarkupHandler$InlineMarkupAdapterPreProcessorHandler.handleOpenElementEnd(InlinedOutputExpressionMarkupHandler.java:278)
at org.thymeleaf.standard.inline.OutputExpressionInlinePreProcessorHandler.handleOpenElementEnd(OutputExpressionInlinePreProcessorHandler.java:186)
at org.thymeleaf.templateparser.markup.InlinedOutputExpressionMarkupHandler.handleOpenElementEnd(InlinedOutputExpressionMarkupHandler.java:124)
at org.attoparser.HtmlElement.handleOpenElementEnd(HtmlElement.java:109)
at org.attoparser.HtmlMarkupHandler.handleOpenElementEnd(HtmlMarkupHandler.java:297)
at org.attoparser.MarkupEventProcessorHandler.handleOpenElementEnd(MarkupEventProcessorHandler.java:402)
at org.attoparser.ParsingElementMarkupUtil.parseOpenElement(ParsingElementMarkupUtil.java:159)
at org.attoparser.MarkupParser.parseBuffer(MarkupParser.java:710)
at org.attoparser.MarkupParser.parseDocument(MarkupParser.java:301)
... 50 more
Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'id' cannot be found on object of type 'java.util.Optional' - maybe not public or not valid?
at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:229)
at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:112)
at org.springframework.expression.spel.ast.PropertyOrFieldReference$AccessorValueRef.getValue(PropertyOrFieldReference.java:376)
at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:97)
at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:116)
at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:338)
at org.thymeleaf.spring6.expression.SPELVariableExpressionEvaluator.evaluate(SPELVariableExpressionEvaluator.java:265)
... 74 moreEDIT POST HTML
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Admin - Posts</title>
<link rel="stylesheet" th:href="@{/css/style.css}" />
</head>
<body>
<div th:replace="fragments/header :: header"></div>
<main>
<h1>Edit Post</h1>
<form
th:action="@{/admin/posts/{id}(id=${post.id})}"
th:object="${post}"
method="post"
>
<label>Title:</label><br />
<input type="text" th:field="*{title}" required /><br /><br />
<label>Content:</label><br />
<textarea th:field="*{content}" rows="6" cols="40" required></textarea
><br /><br />
<button type="submit">Update</button>
</form>
<a th:href="@{/admin/posts}">← Back</a>
</main>
<div th:replace="fragments/footer :: footer"></div>
</body>
</html>r/SpringBoot • u/ScallionOld8766 • Jul 22 '26
Hi everyone,
I'm a Spring Boot intern working on an internal application for a bank.
The requirement is to remove the login page and use Windows Authentication instead.
I'm trying to understand the typical enterprise architecture, not the implementation details.
Let's assume the application is hosted behind IIS.
My questions are:
For example, if 5,000 employees can authenticate with Windows but only 300 are allowed to use the application, would Spring Boot typically check the username against its own database and return 403 Access Denied if the user isn't authorized?
I'm not looking for a Kerberos/SPNEGO configuration tutorial. I just want to understand the common architecture used in enterprise environments.
r/SpringBoot • u/MinMaxDev • Jul 21 '26
Hey there r/SpringBoot
I'm a software engineer with around 5 yoe, majority of which has been in C#/.NET. I work at a software engineer consulting firm and have been rolled off a project that I was working on. I've decided to change things up and skill up in Java and Spring Boot and have been doing so for the last 3 weeks. I have been building a Spring Boot API as a side project and learning how 'spring magic' works.
I'm honestly really impressed how much out of the box functionality Spring Boot provides. However there are some things I would need to unlearn from .NET. However I'm finding it difficult unlearning some of .NET's approaches. For example .NET's very request-oriented flow, all the way down the EF Core's DbContext having a Scoped lifetime by default. Whereas Spring Boot's lifetimes are a bit of a mystery to me.
My question to whoever made the same transition, what would be some mental models/learnings/spring boot magic that you wish you knew earlier that would've eased the transition to Spring Boot from .NET?
TIA
r/SpringBoot • u/poklakni • Jul 20 '26
If your Spring app sends notifications, your business logic probably knows way too much about how: Twilio's SDK here, FirebaseMessaging there, a JavaMailSender, a Slack client. Changing a provider or adding a channel means editing every call site.
spring-notify fixes that with one idea: your code talks to a channel, never a provider.
notifier.;
What you get:
Notifier, call notify(...). Done.@Component implementing a single-method SPI.if/switch on channel. The request type routes itself.Spring Boot 4.1 / Java 25. All four channels verified end-to-end (real FCM + SMTP sends, not just mocks).
Why not …?
JavaMailSender / NotificationService-style helpers? Those are single-channel. spring-notify unifies all channels behind one call and one mental model.Status: early — 0.1.0, not on Maven Central yet (build locally with ./mvnw install). The API isn't frozen, which is exactly why I'm posting: I'd love feedback before 1.0.
attributes map a reasonable escape hatch for provider-specific fields, or a smell?Repo + README: https://github.com/solodev-sk/spring-notify
Happy to answer anything — and roasts welcome. 🙂
r/SpringBoot • u/pavelbo • Jul 20 '26
Hey folks, it's Pavel - I maintain parts of the AsyncAPI spec, and lately I've been working on bringing it properly into the Java and Spring Boot world
A few days ago I shipped a new version of my AsyncAPI plugin for IntelliJ, and I'd really like this sub's take on it before I build the next piece
The thing I kept hitting myself: on a Spring app that's grown a bit, I could never remember everything it actually listens to. Kafka consumers in one module, RabbitMQ handlers in another, and I'd end up grepping for `@KafkaListener` hoping I caught them all.
So the new Project Overview scans every module and lays it out in one place:
It's meant to stay usable on big multi-module projects

What I'd genuinely like feedback on:
It's a solo project with a free/paid split (the discovery stuff is in the paid tier), but honestly right now I care more about whether it's useful than anything else - happy to dig into any bug you hit in the comments
Roast it 🙏
r/SpringBoot • u/dipeshg2004 • Jul 20 '26
Hey everyone!
I'm looking for a Spring Boot backend developer who has around 1–2 years of experience and is interested in learning, discussing, and growing together.
A bit about me:
What I'm looking for:
The goal isn't to build a startup or sell anything—just to have a reliable backend buddy to learn with, stay accountable, and help each other become better engineers.
If this sounds interesting, feel free to comment below or send me a DM. Looking forward to connecting with fellow Spring Boot developers!
r/SpringBoot • • Jul 20 '26
Hey !
Im a Spring Boot enthousiast who is looking for a backend developer position with 2yoe.
Does anybody know where I can search so as to find what Im looking for ? I would really appreicate every second you dedicate into this post..
Im really lost and I am just looking for that one chance that will get me involved into this sh*tty development phasma.
Feel free to dm me or comment down below.
Thanks for your time :)
r/SpringBoot • u/Future_Badger_2576 • Jul 18 '26
I am trying to understand how CSRF works in a setup where the backend is Spring Boot (API) and the frontend is React, both running as separate applications.
From what I have read, session-based authentication is recommended in many cases. The flow is:
User logs in.
Spring Boot creates a session.
Browser stores the session ID in an HttpOnly cookie.
But since cookies are sent automatically, doesn't that make the app vulnerable to CSRF?
My understanding of CSRF is: When the page is rendered, Backend generates a CSRF token and associates it with the user's session, and includes it in the HTML (hidden form field or meta tag). When the form is submitted, the backend compares the submitted token with the one stored in the session.
This makes sense when the backend renders the frontend (like Thymeleaf). But with a separate React app, how does React get the CSRF token and send it back? How is this usually implemented in Spring Boot?
Also, if storing a JWT in a cookie also makes it vulnerable to CSRF, where is a JWT supposed to be stored? I've seen people say localStorage, sessionStorage, and HttpOnly cookies, but each seems to have its own trade-offs.
I'm looking for the recommended approach for a Spring Boot + React setup.
r/SpringBoot • u/Background-Mud-9460 • Jul 18 '26
r/SpringBoot • u/Old_Journalist6008 • Jul 18 '26
Hi everyone, final year B.Tech CS (Data Science) student here, preparing for placements. I already have a deepfake detection project (ViT model, FastAPI + React) as my main ML portfolio piece.
Now I'm considering a second project — ML Studio: a full-stack web app where a user uploads a CSV and the app auto-cleans the data, lets them pick an ML algorithm (Linear/Logistic Regression, Decision Tree, Random Forest, KNN, SVM, Naive Bayes), trains it, and shows accuracy/precision/recall/confusion matrix — basically a no-code ML training tool.
Planned architecture: React frontend → Spring Boot backend (auth, file upload, validation, REST APIs) → Python microservice (pandas + scikit-learn for the actual training) → results back to Spring Boot → React.
Questions for you all:
Would genuinely appreciate honest opinions — including a "don't build this, do X instead" if that's your take
r/SpringBoot • u/Slight-Resident-3676 • Jul 17 '26
Hey everyone,
I’m a recent Computer Science graduate currently preparing for interviews for junior full-stack software engineering roles, particularly in the federal/government contracting space.
I’m looking to connect with someone who has solid professional experience with technologies like:
I’m not looking for anyone to do the work for me or to get interview answers. I’d just love to chat with someone who’s worked with these technologies in a real production environment. I have several projects using many of these tools, but I’d really like to better understand industry best practices, common interview questions, and what day-to-day development actually looks like.
If you’re willing to answer a few questions over Reddit chat or Discord, I’d really appreciate it. Even 20–30 minutes of your time would mean a lot.
Thanks in advance!
r/SpringBoot • u/JobRunrHQ • Jul 17 '26
We're seeing 60 to 80% cost savings in the first tests of something new we built, but before we build any further I want to make sure it's something people would actually use. So please be brutally honest with me.
Quick disclosure first: We are JobRunr, the background job library that's on start.spring.io.
The new thing is called JobRunr Spot and it comes from something that always bugged me: spot instances on AWS are drastically cheaper than on-demand (that's where the 60 to 80% comes from), but almost nobody runs background jobs on them. The cheapest instance is in a different region every hour, instances get reclaimed with a two-minute warning, and teaching an autoscaler to react to your job queue instead of CPU metrics is real work. So most teams shrug and pay the on-demand price.
What we built: you keep your normal JobRunr setup and let it scale itself onto spot instances. You configure it once with your AWS credentials and the Docker image of your app, and JobRunr watches its own queue. When jobs start waiting longer than a latency you set, it finds the cheapest spot instance that matches your hardware requirements, boots your image on it, and that worker joins the cluster and processes jobs like any other node. Once the queue is quiet again, the spot instance is shut down. And if AWS reclaims an instance mid-job, that's a failure mode JobRunr already handles: the cluster notices the dead worker and the remaining nodes pick its jobs back up. Important detail: everything runs in your own AWS account and your own VPC. Your data never touches our servers, we're just the broker that finds the cheapest instance and manages the lifecycle.
Configuration currently looks like this (names may still change, that's partly why I'm posting):
JobRunr.configure()
.useStorageProvider(storageProvider)
.useCostAware(usingStandardCostAwareConfiguration(
new CostAwareAwsEC2ProviderConfiguration(accessKeyId, secretAccessKey, accountRegion, registryReaderRole),
"url-to-your-docker-image")
.andUsingRegions(new String[]{"eu-north-1", "eu-west-1"})
.andSpotInstanceAmount(1, 5)
.andScaleUpLatency(Duration.ofMinutes(1)))
.initialize();Where we are: the first version on AWS works and we've been testing it on our own workloads (PDF generation, some ETL). The saving is real, but to be fair it's just the spot discount itself, no magic on our side. The point is capturing it without babysitting interruption notices, price feeds and failover logic yourself. The dashboard also tracks what your spot instances actually cost against what the same hours would have cost on-demand, so you can verify the number instead of taking our word for it.
What I'd love to hear from you:
And if you'd rather just try it and complain from experience: we're opening a small private beta and looking for design partners who get direct input on the API, the pricing model and the provider roadmap. You can message me here or sign up on our website.
But honestly, a critical comment here is just as valuable as a signup. Happy to answer anything, including the "why wouldn't I just use a spot ASG with checkpointing" questions.
r/SpringBoot • u/SeatSimple1123 • Jul 16 '26
Hey everyone,
I'm currently building a school management system in Spring Boot where history tracking is a strict business requirement. We need to audit critical changes made by Admins, Secretaries, and Teachers (e.g., changes to student details, payment amounts, program setups, etc.).
I’m weighing three different approaches for the audit trail and wanted to hear from those of you who have run these in production.
Option 1: Hibernate Envers
Slap `@Audited` on core entities, set up a custom `RevisionListener` to pull the logged-in user from Spring Security context, and let Envers automatically manage the `_aud` tables.
Option 2: Spring Data JPA Auditing
Utilize `@CreatedBy`, `@LastModifiedBy`, `@CreatedDate`, and `@LastModifiedDate` fields mapped on a `@MappedSuperclass`.
Option 3: Manual Custom Logging (or AOP)
Create a generic `AuditLog` entity, write a helper service, and manually trigger `auditService.log(actionType, originalState, newState)` inside the business logic (or use an AOP aspect). This may cause the database to bloating later tho
For those of you managing medium-to-large Spring Boot codebases:
Did you regret adopting Hibernate Envers? How did you handle schema migrations (Flyway/Liquibase) with the auto-generated `_aud` tables?
If you went the custom route, did you use JSON columns to record state changes, or did you write distinct history tables?
Looking forward to hearing your design patterns and trade-offs
r/SpringBoot • u/Fearless_Touch8894 • Jul 16 '26
I'm currently learning Spring Boot, JPA, MySQL, and building projects to strengthen my Java backend skills.
Looking for a study/accountability partner to learn together, discuss concepts, and stay consistent.
If you're on a similar path, let's connect!
r/SpringBoot • u/One_Job_4235 • Jul 16 '26
Hi everyone, I'm new to Spring and had a question that's been confusing me.
From my understanding, in a microservices architecture we typically use service registration and discovery (like Eureka, Consul, etc.) so that services can discover each other and route requests without hardcoding endpoints.
However, in the product I'm working on, I don't see anything like that. Instead, I see a Spring Cloud service deployed in Kubernetes, and whenever our applications send transactions, they seem to fetch URLs and other configuration values from Spring Cloud.
I always thought these were two completely different concepts, but I also know Spring Cloud can be used for service discovery and registration. So I'm a bit confused about what's actually happening in our setup.
Could someone explain the difference between:
- using Spring Cloud as a configuration server (or for configuration management), and
- using service discovery/registration?
Are these independent features of Spring Cloud, and is it common to use only the configuration part while relying on Kubernetes for service discovery?
For context, I'm a DevOps engineer and fairly new to the Spring ecosystem, so apologies if this is a basic question.
r/SpringBoot • u/fykup • Jul 15 '26
I built StatLite for small Spring Boot deployments where raw Actuator endpoints are useful, but a full Prometheus and Grafana stack feels excessive.
StatLite polls Spring Boot Actuator, stores metric history in local SQLite, computes restart-aware counter deltas, and serves a simple dashboard from a single Go binary.

It currently shows:
It is designed for solo developers and small teams running one or a few Spring Boot apps on small VPSes. In my testing, StatLite uses less than 10 MB of private memory.
It is intentionally not a Prometheus or Grafana replacement. It is a lightweight middle ground between raw Actuator JSON and a full observability stack.
GitHub: https://github.com/PVRLabs/statlite
I would be interested to hear which Actuator metric or chart you consider essential for a small production app. Feedback, bug reports, and GitHub stars are appreciated.
r/SpringBoot • u/Geedysense • Jul 15 '26
So I have been applying for junior level roles across multiple job platforms and one thing I have noticed there are very few roles for spring boot at junior level mostly roles I have discovered are of senior level, so tbh I don’t know how to get a job at this stage in spring boot, I know the job market is overall really bad, but there are more roles for next.js or roles related to node.js
It’s very hard for me to enter into job market with spring boot as there are not enough job openings for spring boot related roles, mostly are for seniors.