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.

Get a personalized technical roadmap from our senior architects in a focused blueprint session.
TESTIMONIALS

HST Solutions is
Truly Committed
To The Clients We Serve.

Book a free call to discuss your ideas with us!
FLEXIBLE ENGAGEMENT MODELS

Find The Perfect Solutions For Your Project

Managed Team

Your product, our dedicated team. From concept to conception, we handle it all.

Staff Augmentation

Need extra hands? Our experts seamlessly join your team, providing the skills you need, when you need them.

Fixed Cost

Upfront price, guaranteed delivery. Your project completed on time and within budget.

    EXPLORE MORE WAYS WE CAN HELP

    Need a Different Approach?

    Compare All Engagement Models

    What is 4 + 1?

    WHAT MAKES US STAND APART

    We Have Deep
    Technical & Industry Experience

    One Team, One Dream

    At HST, there is no such thing as not my problem.

    Build Trust with Every Interaction

    We’re accountable to our clients and to each other. which means being open even when things aren’t going smoothly.

    Improve Everything

    The world of software and business moves fast so we re always learning and honing our skills.

    Own It

    We are a team of doers and we take responsibility for the success of everything we do.

    Obsessed: Over Results

    We’re obsessed with driving business value for our clients and we know that starts with gaining a deep understanding of the problems they’re facing

    Proven Excellence

    Our word is our bond. With 250+ projects delivered on time and within budget, we’ve built a reputation for keeping every promise.

    Partners in Precision

    Financial services, insurance, healthcare, retail, media. Trust built where excellence is the only option.

    Who Are We ?

    Creativity, Efficiency, & Advanced AI

    Strategy

    We've got all the big ideas and creative talent of an ad agency or creative studio except we deliver working products, not expensive presentations.

    Engineering

    We develop lean, stable code using all the best practices of any leading dev shop, except we focus on the user experience so people actually like using what we build.

    Design

    We validate, design, and prototype proof-of-concepts like any "creative technology" studio, but we do it in less time and for less money.

    Co-paired AI

    Co-paired AI development ensures twice the efficiency at a lower cost. We prioritize your software for innovative, precise, scalable, and quality-assured applications.

    Strategy

    We've got all the big ideas and creative talent of an ad agency or creative studio except we deliver working products, not expensive presentations.

    Engineering

    We develop lean, stable code using all the best practices of any leading dev shop, except we focus on the user experience so people actually like using what we build.

    Design

    We validate, design, and prototype proof-of-concepts like any "creative technology" studio, but we do it in less time and for less money.

    Co-paired AI

    Co-paired AI development ensures twice the efficiency at a lower cost. We prioritize your software for innovative, precise, scalable, and quality-assured applications.

    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.

    Years in Business
    18 +
    Flawless Ratings
    5 .0
    Successful Projects
    250 +

    Please fill in the form below and we will be in touch.