r/SpringBoot • • Jul 08 '24

Springboot Project Ideas?

Hello everyone, I am looking for some spring project ideas which in turn will help to be Associate-Senior level Software Engineer.

For now, I have covered creating RESTful APIs and looking forward to learning Microservices.

Any ideas for the roadmap and technologies after this?

Thank you. 🙏🏼

33 Upvotes

10 comments sorted by

11

u/bikeram Jul 08 '24

Add a messaging queue.

Create one service that can consume graphQL/rest requests and produces a message to rabbitmq/kafka. Then another service to consume/persist the message with hibernate.

Consider dead letters that aren’t consumed when your messaging service goes down

Since you’ll “always” get a good response from graphQL/rest. You’ll need to write some type of alerting system to let the frontend know your message was received and persisted.

Personally, I’m not a huge fan of graphQL, but it’s popular enough that I’d suggest to go ahead and get some experience.

1

u/nnirmall Jul 08 '24

Thank you kind sir.

4

u/Octavian_96 Jul 08 '24

100% ^

You should also consider event driven architecture patterns, like the main 2 solutions to the dual write issue, the outbox pattern and the speak to yourself pattern

And if you really want something notable, write load tests and concurrency tests to assert on your API level race conditions

6

u/EducationalMixture82 Jul 08 '24

Implement BASIC security and then FORM security. Dont google jwt and spring security because you will just end up at a lot of blogposts building homemade security solutions that are not standard.

3

u/[deleted] Jul 08 '24

So all those things are worthless? I am asking because I am learning jwt authentication right now from a blog. Where they are implementing and creating jwt service classes, but i am trying to learn what each and every line of code is doing.

16

u/EducationalMixture82 Jul 08 '24 edited Jul 09 '24

Yes they are worthless, i have had to explain this so many times to people. When JWT arrived noone really knew what to use them for, so people started using them for a lot of things. Now about 10 years later internet has learnt what they are good at and what they should not be used for. But bloggers, usually learn from other bloggers. So they write a blogpost and never update it even though the standards are updated.

Today, the consensus is that JWTs should be used when doing service to service calls. So when one server is calling another server. They should not be handed out to browsers. Handing out JWTs to browsers after username password has an official name and is called the _Password Grant Flow_ in the oauth2 specification, and it has been deprecated and deemed MUST NOT be implemented. And is scheduled to be completely removed in the oauth2.1 spec https://oauth.net/2/grant-types/password/

You also have the implicit flow, which has also been deemed SHOULD NOT implement because of several redirect risks and dangers of luring people into logging in and stealing the token.

Here is a video about it https://oauth.net/2/grant-types/implicit/

But bloggers dont read specs. As you have probably seen is that spring security does not have any of that implemented in the security framework, and that is because spring security follows and implements agreed upon standards. Such standards are BASIC auth, FormLogin, Oauth2 specification, SAML, x509 certficate authentication etc. etc.

I cant explain to you what authentication feature you should implement. All i can tell you is that if want to learn, and you would apply for a job and you want to know security. I would suggest you learn the standards, because those are the ones that are used within corporations.

I would start with BASIC auth and FormLogin, and really try to understand how they work.

read the 2 architecture chapters and really understand them. They explain all the building blocks in spring security.

https://docs.spring.io/spring-security/reference/servlet/architecture.html
https://docs.spring.io/spring-security/reference/servlet/authentication/architecture.html

(the second link is the most important one to learn)

If you know these to you will already know more than most people that code with spring security.

Then read the chapters on Form and Basic auth:
https://docs.spring.io/spring-security/reference/servlet/authentication/passwords/basic.html
https://docs.spring.io/spring-security/reference/servlet/authentication/passwords/form.html

Dont just skim through, read the bulletpoints and follow the flow with the understanding of all the building blocks from the architecture chapters.

then read on how to store passwords, how the spring security fetches passwords from databases
https://docs.spring.io/spring-security/reference/servlet/authentication/passwords/dao-authentication-provider.html#servlet-authentication-daoauthenticationprovider

and how you jack into it with code to fetch the user after login
https://docs.spring.io/spring-security/reference/servlet/authentication/passwords/user-details-service.html

And then the large VERY IMPORTANT chapter on how spring handles passwords
https://docs.spring.io/spring-security/reference/features/authentication/password-storage.html#authentication-password-storage

3

u/nnirmall Jul 08 '24

Thank you so much.

3

u/[deleted] Jul 08 '24

Great! Thanks for the Info buddy

5

u/javinpaul Jul 08 '24

You can start with a simple CRUD service like adding, searching, and deleting employees then you can build projects like

  1. TODO App

  2. Calendar Service

  3. Weather Service

  4. Blog App

I have also share few ideas on my blog post earlier, https://www.java67.com/2022/12/10-projects-ideas-to-learn-spring-boot.html you may want to check.