Comments (5)
I prefer func (*Conn) Produce(req *ProduceRequest) (res *ProduceResponse, err error)
, also fwiw this is similar to existing Producer APIs for example https://kafka.apache.org/10/javadoc/org/apache/kafka/clients/producer/KafkaProducer.html#send-org.apache.kafka.clients.producer.ProducerRecord-
from kafka-go.
@silence44 I think we could get this in pretty quick, let me see if we can get a PR up for next week.
from kafka-go.
Is this feature in progress right now?
I want to switch from sarama to segmetio but this missing feature stops me. Is there another way to get write offset in current library version?
from kafka-go.
I could take on this task.
If I understand correctly, all the necessary data is written in the method produceResponsePartitionV2.readFrom
. Is it so?
Do you want to make a new method
func (*Conn) Produce(req *ProduceRequest) (res *ProduceResponse, err error)
analogue of the
func (c *Conn) WriteCompressedMessages(codec CompressionCodec, msgs ...Message) (int, error)
?
In the current code, it is faster to make this variant
func (c *Conn) WriteCompressedMessagesAt(codec CompressionCodec, msgs ...Message) (nbytes int, partition int32, offset int64, timestamp int64, err error)
from kafka-go.
@scarbo87 after some discussions with @achille-roussel we decided to introduce a new client rather modify the existing ones. I'm out until Jan 4th, so current ETA on this for me is week of Jan 7th. If you need it sooner and want to take a pass at it, PRs are always welcome 👍
from kafka-go.
Related Issues (20)
- `reader.Close()` stuck randomly HOT 1
- Make `(msg *Message) totalSize()` public
- Asynchronous mode in kafka package not working
- Duplicate consumption occurs when join a new consumer and CommitInterval is configured HOT 1
- After increasing partition count, consumer group is not assigned to the new partitions. HOT 1
- Observability : Kafka Consumer/Producer metrics and tracing.
- Subscribe topic on demand
- A new method for Batch called ReadIntoMessage
- authorization retries
- What is the difference between kafka.NewConsumerGroup and kafka.NewReader,
- What is QueueCapacity param ?
- Offset is going ahead and we are missing message with lag HOT 3
- How do I specify partition when producing messages,I want to implement ordered messages HOT 1
- AllowAutoTopicCreation does not exist in writer config, but only in the writer struct HOT 1
- Go1.16 cannot run tests HOT 2
- Feture request: logger with different levels HOT 1
- Issue: Getting half partitions while Consumer Group Migration
- Do not panic on errors
- Making the producer backoff algorithm configurable
- a lot of unexpected EOF error when reading from partition
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 kafka-go.