Companjon-Kafka
HST Enables Real-Time Data Ingestion for
Companjon with Kafka Integration
Architecture Note
Solving client problems through efficient Kafka Integration
The client, Companjon, faced a significant challenge in handling requests from business partners using the third-party product Graphene via Azure API Gateway. The requirement was to forward a copy of each request, both inbound and outbound, to a Kafka messaging system without impacting performance or response time. Additionally, these messages needed to be streamed to Databricks for further processing and analytics. Our architectural solution e8ectively addressed these needs through a robust, scalable, and flexible integration strategy.
High Level Architecture

Request Forwarding Mechanism
To ensure seamless integration, we configured custom inbound and outbound rules (send-one-way) within the Azure API Gateway. This setup allowed us to forward a copy of each request to Kafka before sending it to Graphene. By employing an asynchronous, non-blocking mechanism, we ensured that the primary request processing remained unaffected, maintaining high performance and response times.
Scalable Kafka Infrastructure
We deployed a Kafka cluster with horizontal scaling capabilities to manage high throughput and large volumes of requests. Extensive performance testing validated the cluster’s ability to handle millions of requests efficiently, ensuring consistent system response times and throughput.


Spring Boot-based Kafka Producers
To accommodate different data serialization needs, we developed two variants of Kafka producers using Spring Boot: one for Avro schema-based serialization and another for JSON schema-based serialization. These producers featured configuration management to switch seamlessly between Avro and JSON schemas based on client requirements.
Generic Kafka Producer Development
Our solution included enhancing the Kafka producer to dynamically create topics if they did not already exist, ensuring scalability. We integrated an Avro schema registry for dynamic schema creation and encryption, providing secure and efficient data handling. The Kafka producer was designed to be highly configurable, meeting diverse client needs and ensuring adaptability for future requirements.


Python-based Kafka Consumer for Databricks Integration
We developed a Kafka consumer using Python, implementing continuous streaming to pull messages from Kafka topics efficiently. Comprehensive error handling ensured robustness against connectivity issues, message parsing errors, and Kafka cluster downtime.
For Databricks integration, we configured the environment with necessary libraries to run the Kafka consumer. The consumer parsed incoming messages in both Avro and JSON formats and stored them in a bronze table within Databricks for raw data capture.
Automation and Monitoring
To ensure continuous data ingestion and processing, Databricks notebooks were scheduled to run at regular intervals. We automated the data transformation pipeline using Databricks Jobs, allowing timely updates from bronze to silver to gold tables. Monitoring tools were set up to track data ingestion rates, processing times, and resource usage, with alerts configured for quick response to any issues.

Conclusion
Our architectural approach successfully addressed Companjon’s requirements by implementing a robust Kafka integration solution. Leveraging scalable Kafka infrastructure, flexible Spring Boot-based producers, and seamless integration with Databricks, we ensured high performance, scalability, and data integrity. This solution not only met immediate needs but also provided a flexible and adaptable architecture for future enhancements, demonstrating our ability to deliver comprehensive and effective integration solutions.
Skip generic consultations.
HST Solutions is
Truly Committed
To The Clients We Serve.
“Nova Leah has been working with HST for the past few years, and our experience has been exceptional. As a startup, we needed a partner who could deliver not just technical excellence but also understand our unique needs and growth pace. HST has more than delivered.
The team's technical expertise is outstanding. They've consistently provided innovative, scalable solutions that align perfectly with our needs. What impresses us most is their flexibility—whether it's scaling up quickly or adapting to new requirements, they've been able to pivot and respond swiftly without compromising on quality.
HST feels like a true extension of our in-house team. Communication is effortless, and their proactive approach has fostered a collaborative and transparent working relationship. Despite being an outsourced team, their commitment to our goals and values has been evident from day one.
For any startup looking for a reliable and innovative development partner, HST is a perfect fit. Their understanding of the startup environment, combined with their ability to deliver high-quality solutions quickly, has been very impressive.
In summary, HST has been a fantastic partner, the management team have been wonderful to work with - who worked diligently to provide technical excellence, flexibility, and seamless integration with our team. We highly recommend them to any company looking for a top-notch software development partner.”

Waystone has been collaborating with HST Solutions for several years now, and our experience has been outstanding. Partnering with HST has significantly helped us develop scalable, secure, and efficient technology solutions that underpin our operations.
HST’s technical expertise is truly remarkable. They've delivered a robust data management framework including customized ETL, a well-structured data warehouse, and tailored reporting that aligns seamlessly with our enterprise-wide needs. Their ability to adapt to our evolving requirements while maintaining quality has consistently impressed us.
What stands out most is how smoothly HST integrates with our internal teams. Communication is straightforward, and the proactive approach of their developers and project managers fosters a collaborative and transparent working relationship. They’ve quickly become a trusted extension of our workforce, fully committed to our shared objectives.
For any organization aiming to streamline data processes or expand their product offerings based on reliable, single-source data, HST is an ideal partner. Their combination of technical know-how, flexibility, and swift turnaround times provides real value and the agility we need to grow.

Find The Perfect Solutions For Your Project
Managed Team
Your product, our dedicated team. From concept to conception, we handle it all.
Staff Augmentation
Fixed Cost
One Team, One Dream
Build Trust with Every Interaction
Improve Everything
Own It
Obsessed: Over Results
Proven Excellence
Partners in Precision
Who Are We ?
Creativity, Efficiency, & Advanced AI




Strategy
Engineering
Design
Co-paired AI

Strategy

Engineering

Design

Co-paired AI
Contact Us
Tell us about your custom software project
Let our team, be your team
Get a technical conversation about your project not a slide deck. Whether you need AI integration, a software engineering team, or a data platform, we’ll tell you honestly if we’re the right fit.