r/springbootlearning • • Aug 20 '24

Hello!! this thread created to discuss springboot related things

7 Upvotes

r/springbootlearning • • Aug 21 '24

Shall we have zoom meetings on weekends?

6 Upvotes

If you want to be a speaker that would also be great. Please ping me with your experience and expertise area 🙏

8 votes, Aug 23 '24
8 Yes, I'm in 🙋‍♂️
0 Nope, No need

r/springbootlearning • • Feb 21 '25

Key Microservices Principles Every Developer Should Follow

5 Upvotes

When designing microservices, keeping things simple and structured is crucial. Here are some fundamental principles to follow:

1️⃣ DRY (Don’t Repeat Yourself)

Avoid duplicating code, logic, or configurations across microservices. Instead, abstract common functionalities into reusable libraries or services. This makes maintenance easier and reduces inconsistencies.

2️⃣ KISS (Keep It Simple, Stupid)

Simplicity is key! Start with a basic, functional microservice and avoid over-engineering. Each microservice should focus on one business functionality and evolve as needed. Simple designs are easier to scale and maintain.

3️⃣ Separate Databases for Each Microservice

Microservices should never share a database. Each service must own its data to ensure loose coupling and independent scalability. If data needs to be shared, use API communication or an event-driven approach (e.g., Kafka, RabbitMQ) instead of direct database access.

4️⃣ DDD (Domain-Driven Design)

Understand your business domain before breaking it into microservices. • Domain = A real-world business problem (e.g., an Organization). • Bounded Contexts = Independent functionalities within a domain (e.g., HR, Finance, Sales as separate services). • Each microservice should align with a bounded context, ensuring clear ownership and separation.

5️⃣ API Gateway – A Must-Have!

An API Gateway acts as a single entry point for all client requests. It helps with: ✅ Centralized authentication & security (OAuth, JWT) ✅ Rate limiting & load balancing ✅ Routing & versioning ✅ Service discovery (easier to locate microservices)

Common tools: Spring Cloud Gateway

Final Thoughts

Designing microservices the right way ensures scalability, maintainability, and flexibility. Start simple, keep services independent, and always align with the business domain.

What other best practices do you follow in microservices design? Let’s discuss!


r/springbootlearning • • Aug 21 '24

Springboot based Microservices Project

5 Upvotes

Hi All,

I am working on creating this microservices based PROJECT (click this link) based in SpringBoot:

Tech Stack:

  • Java 8.0

  • Springboot framework

  • DB

    • MySql

    • MongoDB

    • working on integrating Elastic search

  • Apache Kafka

  • API Gateway usign Spring cloud

  • Microservices design

This can be a starter for anyone who wants to understand the microservices workflow including authentication, API gateways and message brokers. You can also add to this.

  1. Just checkout the code and run at your end.

  2. I am using a docker compose file to run my kafka.

Ways to contribute:

  1. Add documentation

  2. Add more microservices

  3. Code review


r/springbootlearning • • Aug 20 '24

How does authorization works with spring security ?

5 Upvotes

r/springbootlearning • • Aug 03 '25

Need help with developing a tutoring platform

3 Upvotes

Hi, everyone!

I am working on developing a tutoring platform called Mentorly Learn and I could use some help from people that are also trying to improve their resume or work on a meaningful side project.

Preferably, you already know a little bit about Spring Boot , but if not, you're willing to learn, i can be there to provide support.

Please note that I'm looking for people that are consistent and willing to be in a long-term collaboration on this project or future projects as well.

If you'd like to be a part of this project, send me a message so we discuss your involvement.

Thanks and have a great day, everyone!


r/springbootlearning • • Jun 30 '25

What is important for getting Job

3 Upvotes

should i learn spring core, like how xml is used for bean identification & that,or

should i just focus on creating apps using annotations


r/springbootlearning • • Feb 08 '26

Got myself into a spring boot project via my teacher and I have no clue about spring boot and backend in general and barely made any good project in java. Where do I go from here

Thumbnail reddit.com
2 Upvotes

r/springbootlearning • • Jul 13 '25

Spring boot project for resume

2 Upvotes

I just finished a Sprint boot course on Udemy and built some small projects in it, now I want to build some good real world problem solving projects so that I can add in my resume, can anyone please suggest me some projects.


r/springbootlearning • • Jul 02 '25

Need code help

2 Upvotes

In a string I'll pass some query which is select query having sub selects in it. Using jsqlparser 5.1 version I need to extract the sub selects in select query


r/springbootlearning • • May 31 '25

Multitenant Microservices Examples

2 Upvotes

Hey everyone! 👋

I’d like to share two Git repositories that demonstrate how to implement multitenancy in microservices using two different approaches:

🔹 Schema/Database-Based Multitenancy
In this approach, tenants are isolated by using separate database connections — either pointing to different schemas or entirely different databases. It's flexible and ensures a strong level of data isolation.

🔹 Attribute-Based Multitenancy (Row-Level)
Here, tenant identification is handled via an additional column in each table (e.g., tenant_id). What's cool about this implementation is that it's fully abstracted from the developer. From the dev's perspective, it’s as if that column doesn’t even exist — no need to manually handle tenant filtering in queries. It’s all taken care of automatically behind the scenes.

Both implementations support tenant resolution across multiple contexts:

✅ REST requests: tenant ID is extracted from the request headers
✅ SQS queues: tenant ID is extracted from message attributes
✅ Kafka topics: tenant ID is extracted from message headers

The tenant resolution and routing logic are completely abstracted, so developers can focus on building features without worrying about tenant management.

Let me know if you find this useful or if you have any feedback or suggestions!

I'll be happy to share the links and discuss implementation details if anyone is interested.

Schema/Database-Based Multitenancy
Attribute-Based Multitenancy (Row-Level)


r/springbootlearning • • Apr 22 '25

Need any spring boot help. I need some experience that I can put on my resume.

2 Upvotes

Hi guys, I am looking at new jobs and I see most are java and/or spring boot related. I need some projects that I can use to boast up my resume. if you have any projects that I can help on or can help create. DM me.


r/springbootlearning • • Feb 14 '25

Media Transfer Application- Need build help (spring boot)

2 Upvotes

So, context - i’ve run out of storage space in my iPhone, and you cant transfer all your images/videos using USB. A working solution I’ve found is ‘Simple Transfer’ app, which connects like shareit or xender and pulls all images to your desktop, but the thing is, it has a 50image limit on free mode.

Could anyone help me understand how i can make some application of my own which can connect to devices in wifi and download images from my phone.

I would like to use JAVA and Boot as my base, any documentations or tutorials or videos will help, can you link me up with something to start


r/springbootlearning • • Mar 07 '26

is this a good project idea for fresher to put on resume

Thumbnail reddit.com
1 Upvotes

r/springbootlearning • • Jan 07 '26

Course download

1 Upvotes

if any one have concept && coding - by shrayansh java spring boot course download?? 🥲


r/springbootlearning • • Dec 01 '25

How to practive SpringBoot

Thumbnail reddit.com
1 Upvotes

r/springbootlearning • • Nov 27 '25

@CacheEvict is not working in spring boot please help!

1 Upvotes
package com.SecureNotes.Backend.Services;


import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.Caching;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;


import com.SecureNotes.Backend.Interface.INoteService;
import com.SecureNotes.Backend.Models.Note;
import com.SecureNotes.Backend.Repositories.NoteRepository;


import jakarta.persistence.EntityNotFoundException;



public class NoteService implements INoteService {


    
    private NoteRepository noteRepository;


    
    @Cacheable(cacheNames = "SNotes",  key = "#username.toLowerCase().trim()")
    public Note createNoteForUser(String username, String content) {
        System.out.println("Evicting cache for Username: " + "[" + username + "]"); 
        Note note = new Note();
        System.out.println("CLASS = " + this.getClass());


        note.setContent(content);
        note.setOwnerUsername(username);


        Note savedNote = noteRepository.save(note);
        return savedNote;


    }


    
    // (put = (value = "SNote", key = "#noteId + ':' + #username"),
    // evict = (value = "SNotes", key = "#username"))
    public Note updateNoteForUser(Long noteId, String content, String username) {
        Note note = noteRepository.findById(noteId).orElseThrow(() -> new EntityNotFoundException("Note not found"));
        note.setContent(content);
        Note updatedNote = noteRepository.save(note);
        return updatedNote;
    }


    
    // (evict = { (value = "SNote", key = "#noteId + ':' +
    // #username"),
    // (value = "SNotes", key = "#username") })
    public void deleteNoteForUser(Long noteId, String username) {
        noteRepository.deleteById(noteId);
    }


    
    (cacheNames = "SNotes", key = "#username.toLowerCase().trim()")
    public List<Note> getNotesForUser(String username) {
        List<Note> notes = noteRepository.findByOwnerUsername(username);
        return notes;
    }


    
    @Cacheable(cacheNames = "SNote", key = "#noteId + ':' + #username.toLowerCase().trim()")
    public Note getNoteForUser(Long noteId, String username) {
        Note note = noteRepository.findByIdAndOwnerUsername(noteId, username);
        return note;
    }


}

r/springbootlearning • • Nov 25 '25

Sharing my open source Spring Boot + React application (again)

Thumbnail reddit.com
1 Upvotes

r/springbootlearning • • Nov 24 '25

advice for springboot as a beginner

Thumbnail reddit.com
1 Upvotes

r/springbootlearning • • Nov 14 '25

How to learn spring and spring boot

1 Upvotes

Hi everyone, Can anyone guide me how to learn spring boot from scratch and with real time experience, actually I'm already working but still I'm unable to enhance the things clearly.


r/springbootlearning • • Oct 27 '25

SpringBoot How to make a custom user service

1 Upvotes

Hello i need to make a full custom user service with a Role Based Authentication also make a full dynamic to add | remove | edit functions in role


r/springbootlearning • • Oct 13 '25

Angular+SpringBoot help

Thumbnail reddit.com
1 Upvotes

r/springbootlearning • • Oct 09 '25

Bridging the Foreign Function Gap with Project Panama

Thumbnail
medium.com
1 Upvotes

r/springbootlearning • • Oct 08 '25

Java object deconstruction patterns

Thumbnail
medium.com
1 Upvotes