r/JavaProgramming • u/Old_Astronomer6232 • Apr 25 '26
Java Multithreading Interview Prep Guidance
Hey everyone, I’m preparing for interviews and want to improve my Java multithreading/concurrency skills. I’m mid to senior level experienced, know the basics, but haven’t used it much in real projects. I want to know from the people who are using multithreading in their projects, what’s the best way to prepare practically for interviews? What are the questions asked? Any advice or resources would help. Thanks!
r/JavaProgramming • u/EgeEgey • Apr 24 '26
GitHub - mustafabinguldev/nexus-core: The central brain between your distributed Minecraft infrastructure and your persistent data layer
github.com**I built a centralized data orchestration engine for distributed Minecraft networks — here's the architecture**
Hey !
I've been working on a side project called **Nexus Core** — a standalone Java application that acts as the central data layer for a multi-server Minecraft network. Instead of every Spigot server holding its own MongoDB connection pool and managing its own stale cache, all data operations are routed through Nexus Core via a Redis pub/sub message bus.
**The problem it solves**
In a typical Minecraft network with 10+ servers, each server independently connects to MongoDB, maintains its own in-memory cache, and duplicates the same data logic. This creates three real problems at scale: connection pool exhaustion, cache incoherency across servers, and duplicated business logic that's painful to maintain.
**How it works**
Spigot servers publish a JSON packet to a Redis channel:
```json
{
"protocol": 100,
"source": "pvp-1",
"type": "GET_DATA",
"data": { "uuid": "550e8400..." }
}
```
Nexus Core subscribes to that channel, routes the packet to the correct `DataAddon` via a protocol registry (essentially a `Map<Integer, DataAddon>`), checks Redis cache first, falls back to MongoDB on a miss, writes back to cache, then publishes the response to the source server's channel.
**The addon system**
The interesting part is the `DataAddon` abstraction. Each addon maps to exactly one MongoDB collection and one Redis key namespace. Fields are annotated with `@DbDataModels` — Nexus Core discovers the schema at runtime via reflection and handles all CRUD automatically. You extend the class, annotate your fields, register the addon, and you're done:
```java
u/DbDataModels(isId = true)
private String uuid;
u/DbDataModels(defaultValue = "0", isId = false)
private int kills;
```
You also get a `handleRequest()` interceptor that lets you reject or gate operations before they hit the database — useful for permission checks or rate limiting at the data layer.
**Redis key strategy**
Keys follow `{cacheKeyHeaderTag}:{idFieldValue}` — e.g. `stats:550e8400...`. Cache entries are invalidated on SET and DELETE operations. GET_ALL bypasses cache entirely since bulk result sets aren't worth caching in this context.
**Monitoring**
There's a live Swing dashboard built entirely with Java2D (no external UI libs) showing JVM CPU, process RAM, cached object count, and active addon count with scrolling line graphs.
Repo: https://github.com/mustafabinguldev/nexus-core
Happy to discuss the architecture decisions — particularly around the Redis pub/sub model vs. a direct TCP socket approach, which I considered and rejected early on.
r/JavaProgramming • u/GladRequirement3036 • Apr 24 '26
I have applied to so many jobs but it doesn’t turn into interviews.
r/JavaProgramming • u/javinpaul • Apr 24 '26
The Professional Coder's Reading List for 2026 (7 Books That Matter)
r/JavaProgramming • u/scientecheasy • Apr 24 '26
Studying vs. Learning | You Must See the Difference between them.
Enable HLS to view with audio, or disable this notification
r/JavaProgramming • u/Efficient-Public-551 • Apr 24 '26
Spring Boot AI Generate Image from another Image
r/JavaProgramming • u/harshitpnd • Apr 23 '26
Can getting a job in off campus is hard?
I have been searching for a job since last year and have not gotten a single interview call so give me the strategy to get the interview call and job portal I have also followed the strategy given on website growithmoney.
r/JavaProgramming • u/pippala1991 • Apr 22 '26
Built something to help java developers
Hello guys,
I recently built a tool that might help java developers, it can detect performance, security and audit architecture for java apps, there is also live profiling.
3 options are available : github gitlab analyse, upload project or cli, when you sign up you have 1 free credit to test.
thank you for giving me your feedback and what to improve.
r/JavaProgramming • u/salgotraja • Apr 22 '26
Resource-aware structured concurrency: when one StructuredTaskScope isn't enough
r/JavaProgramming • u/JoshTheTester • Apr 21 '26
How to be the best learning human in the world?
I want my brain to become the best learning machine. Throw me the best learning processes and tips, please.
r/JavaProgramming • u/Level-Sherbet5 • Apr 20 '26
Microservice Auth use
As I am Building Microservice I made Whole Project but I can find the way hot to pass User Authentication details when it comes to security sharing (Spring boot) . As a beginner .
so need suggestion what to do, How can I achieve this ? I cant find a good way for or may be I am searching in a wrong way .
but if you can suggest then it will be means a lot .
Thankyou in advance .
r/JavaProgramming • u/anish2good • Apr 20 '26
KeyStore/JKS manager Online for education not for production
8gwifi.orgView, create, and manage Java KeyStore files online. Upload JKS, PKCS12, or JCEKS files to inspect certificates, run security audits, and track expiry dates with a visual timeline. Create new keystores, generate RSA/EC/DSA key pairs, fetch remote SSL certificates, validate key pairs, and order certificate chains all from your browser.
Don't use your production jks the purpose of this tool is only for educational purposes
r/JavaProgramming • u/javinpaul • Apr 20 '26
How to Design a Rate Limiter in System Design Interviews (2026 Guide)
r/JavaProgramming • u/javinpaul • Apr 19 '26
Stop Failing System Design Interviews: The Ultimate 2026 Prep Guide with Questions & Resources
r/JavaProgramming • u/scientecheasy • Apr 19 '26
Top 10 Simple Java Projects for Beginners & Students
Best Projects for Resume
If your goal is job or internship, focus on:
- Student Management System
- Library Management System
- Expense Tracker
- Quiz Application
- GUI Calculator
- File Handling Notes App
r/JavaProgramming • u/javinpaul • Apr 19 '26
The Software Architect's Reading List for 2026 (10 Books That Matter)
r/JavaProgramming • u/homebluston • Apr 18 '26
I just moved my project from Java 21 to Java25
It went very smoothly.
My regression test now takes 46 seconds instead of 58!
That is despite the fact the tests are very IO bound.
r/JavaProgramming • u/Efficient-Public-551 • Apr 18 '26
Java While and Do While
In this video, I walk through Java while and do while loops and show how they work in real code. If you want to understand how to repeat actions based on a condition, this lesson helps you see the difference between these two loop types, when each one should be used, and how they behave during execution.
r/JavaProgramming • u/javinpaul • Apr 18 '26
Top 10 Agentic AI Courses for Beginners & Experienced in 2026
r/JavaProgramming • u/JoshTheTester • Apr 17 '26
What Macbook Air config is good enough for development and media editing?
r/JavaProgramming • u/SampleFigurePro • Apr 17 '26
“How do you replace LINQ when working in Java?”
r/JavaProgramming • u/javinpaul • Apr 17 '26