u/Fizzy820

Same agentic workflow, same data, same models — but Java showed nearly 2x latency compared to Python.
▲ 4 r/RemoteWorkers+4 crossposts

Same agentic workflow, same data, same models — but Java showed nearly 2x latency compared to Python.

I built the same LangGraph-based agentic workflow in both Python and Java to compare how identical workflows behave across runtimes.

The workflow was simple:
- Fetch relevant context using RAG
- If no relevant documents are found, fall back to web search for response generation
- Generate response from context
- Respond to user prompts

What stood out was the performance difference.
Even with the same workflow design and sample data, Java showed nearly 2x the latency of Python because runtime behavior matters as much as graph structure. Extra LangSmith tracing calls, different retrieval/embedding stacks, and JVM overhead made the Java path slower in practice.

Tools and models used:
- LangGraph (Python) & LangGraph4j (Java)
- Chroma Vector Store
- RAG pipeline for internal document retrieval
- Gemini 2.5 Flash Lite for relevance grading and response generation
- sentence-transformers/all-MiniLM-L6-v2 for embeddings
- LangSmith for observability
- DuckDuckGo as fallback web search

https://preview.redd.it/dwc8p72sic2h1.png?width=431&format=png&auto=webp&s=6aa520f7c89efddd503216086c6594b0b993b89a

https://preview.redd.it/5tj4b82sic2h1.png?width=1919&format=png&auto=webp&s=e87ac66b65fbbd213ef9a183b2784c4c5f0ef464

reddit.com
u/Fizzy820 — 1 day ago

MOBILE APP JOURNEY

I recently built an android application from scratch as it was in my bucket list for a while. It was a journey which I really enjoyed. The app is currently in closed testing (Hoping it gets pushed to prod as soon as possible 🙂). Happy to help if anyone wants to ask something regarding the same, or if someone wants to build their own application.

Just FYI: If someone wants to try out the app before prod release, join the group: https://groups.google.com/g/ofd-testing

reddit.com
u/Fizzy820 — 6 days ago

MOBILE APP JOURNEY

I recently built an android application from scratch as it was in my bucket list for a while. It was a journey which I really enjoyed. The app is currently in closed testing (Hoping it gets pushed to prod as soon as possible 🙂). Happy to help if anyone wants to ask something regarding the same, or if someone wants to build their own application.

Just FYI: If someone wants to try out the app before prod release, join the group: https://groups.google.com/g/ofd-testing

reddit.com
u/Fizzy820 — 6 days ago

MOBILE APPLICATION JOURNEY

I recently built an android application from scratch as it was in my bucket list for a while. It was a journey which I really enjoyed. The app is currently in closed testing (Hoping it gets pushed to prod as soon as possible 🙂). Happy to help if anyone wants to ask something regarding the same, or if someone wants to build their own application.

Just FYI: If you want to take part in closed testing, pls join the group: https://groups.google.com/g/ofd-testing

reddit.com
u/Fizzy820 — 6 days ago

MOBILE APPLICATION JOURNEY

I recently built an android application from scratch as it was in my bucket list for a while. It was a journey which I really enjoyed. The app is currently in closed testing (Hoping it gets pushed to prod as soon as possible 🙂). Happy to help if anyone wants to ask something regarding the same, or if someone wants to build their own application.

reddit.com
u/Fizzy820 — 6 days ago