GithubHelp home page GithubHelp logo

delphikafkaclient's People

Contributors

norgepaul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

delphikafkaclient's Issues

KafkaConsumer receives other data

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?

Subscribing to topics using regex/wildcards seems to not work

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?

Issue spliting configuration strings

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

DLL x64

Good morning, I can't run it in 64 bits, do you have the dll to run the example project in 64 Bits?

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.