norgepaul / delphikafkaclient Goto Github PK
View Code? Open in Web Editor NEWApache Kafka Client for Delphi
License: MIT License
Apache Kafka Client for Delphi
License: MIT License
ABytes := TFile.ReadAllBytes('d:\red.bmp')
FKafkaProducer.Produce(edtTopic.Text, @abytes, length(ABytes))
//bytes: 66, 77, 186, 1, ...
in TfrmConsume.Start
MsgRec.Data := TKafkaUtils.PointerToBytes(Msg.payload, Msg.len)
//bytes 152, 231, 229, 8, ...
data length matches!
what am I doing wrong?
Hi Team ,
Is provided Delphi code/packages/ components will work with Confluent kafka ?
When specifying a topic name to subscribe to (in TKafkaFactory.NewConsumer
), regex wildcards do not work (^*
or anything else).
rd_kafka_subscribe
description says that
* Wildcard (regex) topics are supported:
* any topic name in the \p topics list that is prefixed with \c \"^\" will
* be regex-matched to the full list of topics in the cluster and matching
* topics will be added to the subscription list.
However, specifying any wildcards for it and calling it does not seem to work either.
Maybe there is some special regex string handling required?
Hi
Using your library, I have found an issue when I try to connect to a kafka server hosted in Azure.
A typical configuration string for kafka hosted in Azure accessible by WindowsAzure.ServiceBus is
'sasl.password=Endpoint=sb://[namespace].servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=[SAS key]'
The TKafkaUtils.StringsToConfigArrays procedure in the Kafka.Helper unit fails when spliting string values with more than one '=' character.
An alternative implementation of this procedure could be
class procedure TKafkaUtils.StringsToConfigArrays(const Values: TStrings; out NameArr, ValueArr: TArray);
var i, p: Integer;
begin
for i := 0 to pred(Values.Count) do
begin
p := Values[i].IndexOf('=');
if p>=0 then begin
NameArr := NameArr + [Values[i].Substring(0,p)];
ValueArr := ValueArr + [Values[i].Substring(p+1)];
end;
end;
end;
Best Regards
how to set/get this kafka_* header?
Good morning, I can't run it in 64 bits, do you have the dll to run the example project in 64 Bits?
I have issues with downloading DLLs from non-official sources.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.