GithubHelp home page GithubHelp logo

extole / example-consumer-java-kafka Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pactflow/example-consumer-java-kafka

0.0 0.0 0.0 168 KB

Example Java Kafka Consumer

License: MIT License

Shell 3.42% Java 65.80% Makefile 30.78%

example-consumer-java-kafka's Introduction

Example Java Kafka Consumer

Build

Can I deploy Status

Pact Status (latest pact)

Pact Status (master/master pact)

This is an example of a Java kafka consumer that uses Pact, PactFlow and GitHub Actions to ensure that it is compatible with the expectations its consumers have of it.

The project uses a Makefile to simulate a very simple build pipeline with two stages - test and deploy.

See the canonical consumer example here: https://github.com/pactflow/example-consumer See also the full PactFlow CI/CD Workshop for which this can be substituted in as the "consumer".

In the following diagram, we'll be testing the "Product API", a simple HTTP service that exposes product information as a REST API, which is fed events from an Event API on the product topic.

Kafka Architecture

Pre-requisites

Software:

https://docs.pactflow.io/docs/workshops/ci-cd/set-up-ci/prerequisites/

Usage

  • Running the API and kafka listener locally: make start
  • Producing test events into the product topic: make test-events
  • Retrieve latest products: curl localhost:8080/products

example-consumer-java-kafka's People

Contributors

mefellows avatar you54f avatar alexanderkranga avatar mend-for-github-com[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.