Building a Multi-Platform Translation Service as a** Data Exchange & Interoperability** Assignment
Hey everyone!
This is my first post on Dev.to. I recently completed a project for my Data Exchange and Interoperability course, and I decided to share the process, the technical decisions, and what I learned along the way.
The Assignment Context
The goal of the assignment was to design and implement a system that demonstrates data exchange and interoperability between different platforms and technologies.
Instead of building a simple CRUD API, I chose to create an English ↔ Moroccan Darija translation service powered by an LLM, exposed through a clean RESTful API, and consumed by multiple heterogeneous clients.
Why This Project?
I wanted the project to go beyond basic request/response and actually illustrate real interoperability challenges:
- Different clients (web extension, mobile, CLI, PHP)
- Different programming languages and runtimes
- Standardized data exchange format (JSON)
- Authentication and secure communication
- Integration with an external AI service (Google Gemini )
System Architecture
The system follows a classic layered approach:
Clients → REST API (Jakarta EE) → Business Logic → Gemini Client → Google Gemini API
Main components:
- TranslatorResource – REST endpoints
- TranslationService – Business logic and prompt construction
- GeminiClient – Communication with the external LLM
- DTOs (TranslationRequest / TranslationResponse) for structured data exchange
Technical Stack
Language: Java 21
Backend: Jakarta EE 11 (JAX-RS + CDI)
Data Format: JSON
LLM: Google Gemini
Security: Basic Authentication
Clients: Chrome Extension, React Native, Python, PHP
Key Interoperability Aspects
1.Standardized Interface
A single REST API is consumed by four completely different clients.
2.Platform Independence
The backend doesn’t care whether the request comes from a browser extension, a mobile app, or a command-line tool.
3.Clear Data Contracts
Well-defined request and response DTOs ensure consistent data exchange.
4.External System Integration
The service acts as an intermediary between clients and the Gemini API, abstracting the complexity of the LLM.
Challenges Faced
- Designing a clean and stable API contract that works well across all clients
- Handling authentication in different environments
- Crafting good prompts so Gemini returns natural Moroccan Darija instead of formal Arabic or explanations
- Managing environment variables and configuration across development and deployment
Final Result
The project is available here:
→ GitHub – Translator RESTful Web Service
It includes:
- Fully functional Jakarta EE backend
- Four different clients
- Documentation and API reference
What I Learned
This assignment helped me better understand:
The importance of well-designed APIs for interoperability
How layered architecture improves maintainability
Practical challenges of integrating external AI services
The value of supporting multiple client platforms
Conclusion
What started as a university assignment ended up being a complete multi-platform system. It was a great opportunity to apply theoretical concepts of data exchange and interoperability in a practical, modern context.
I’d love to hear your thoughts or suggestions for improvement!

