Giter Site home page Giter Site logo

roadrunner-kafka-example's Introduction

Example project

Installation

  1. Clone this project
  2. Install dependencies
composer install
  1. Install and run Kafka
docker-compose -f docker-compose.yaml pull
docker-compose -f docker-compose.yaml build
docker-compose -f docker-compose.yaml up -d
  1. Install RoadRunner
php .\vendor\bin\rr get

Usage

  1. Run RoadRunner
./rr serve
  1. Send test job
php client.php

Example output:

Job ID: e9554f01-5691-4796-8265-d733a2a06a64

Open RoadRunner logs:

2022-08-10T17:13:48.071+0300    DEBUG   jobs            job processing was started      {"ID": "e9554f01-5691-4796-8265-d733a2a06a64", "start": "2022-08-10T17:13:45.578+0300", "elapsed": "2.4924312s"}
2022-08-10T17:13:48.090+0300    INFO    server          "Received task with payload:"

2022-08-10T17:13:48.090+0300    INFO    server          array:1 [
  "foo" => "bar"
]

2022-08-10T17:13:48.091+0300    DEBUG   jobs            job was processed successfully  {"ID": "e9554f01-5691-4796-8265-d733a2a06a64", "start": "2022-08-10T17:13:45.578+0300", "elapsed": "2.5126054s"}

roadrunner-kafka-example's People

Contributors

msmakouz avatar

Watchers

 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.