Comments (4)
Hey 👋 the documentation contains a class structure page, which explains how you can put everything together.
Where do I put this code? (In Laravel console command? a controller?)
Basically, a kafka consumer is a laravel console command.
How this package is listening the arriving messages. I mean, kafka will send an HTTPS request to all subscriber. How this laravel handles this request and send the request to this package, to be consumed?
Kafka will push the message to the broker, and the message will be pulled from the broker by a kafka consumer, which you will create and put in a laravel command.
Related to previous question: what is the purpose of the function of stop listening after last message? Which is the last message of pub/sub pattern?
You can use this when reading a topic from the begining (a topic that already has other messages). As soon as you reach the last message in that topic, the consumer should stop itself.
from laravel-kafka.
@mateusjunges thanks for your answer, I have a little bit of doubt left:
How this package is listening the arriving messages. I mean, kafka will send an HTTPS request to all subscriber. How this laravel handles this request and send the request to this package, to be consumed?
Kafka will push the message to the broker, and the message will be pulled from the broker by a kafka consumer, which you will create and put in a laravel command.
You need a laravel command always in listening, right?
Something like:
php artisan start-my-kafka-consumer
that never stops, always active.
from laravel-kafka.
Yes, that's correct. I use supervisor to make sure that my consumer is always up and running.
from laravel-kafka.
Closing this for now, feel free to @ mention me if you still have questions.
from laravel-kafka.
Related Issues (20)
- Can you please tag 1.13.3 including 4 last commits on 1.13.x ? HOT 1
- [QUESTION] Configuring multiple brokers HOT 2
- [QUESTION] Broker: Specified group generation id is not valid HOT 4
- `stopAfterLastMessage()` not working v1.13.4 HOT 1
- Laravel compatible queue support with kafka HOT 3
- Why CanProduceMessages contract marked as @internal HOT 4
- How to commit each message in `withHandler`
- Make producers to use SASL configuration if on config file
- Consumer not working with multiple partition from producer? HOT 4
- v1.13.x is now closed for new features HOT 6
- Consumers subscribe to Topic using Wildcards or dynamically subscribe to topics HOT 2
- JSON Schema HOT 1
- Problems with the restart mechanism HOT 4
- [QUESTION] Why consume open so many threads? HOT 2
- How do you handle DLQs in the laravel kafka? HOT 3
- SASL authentication error: Authentication failed HOT 5
- Facade Fake loses macros HOT 9
- Undefined constant "Junges\Kafka\RD_KAFKA_PARTITION_UA" HOT 4
- Producer: performance issue due to flush call HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-kafka.