Demonstrates Akka streams wrapper for Apache Kafka: https://github.com/softwaremill/reactive-kafka
For full description check the tutorial. See library documentation for more examples.
Activator template for Reactive Kafka
License: Other
Demonstrates Akka streams wrapper for Apache Kafka: https://github.com/softwaremill/reactive-kafka
For full description check the tutorial. See library documentation for more examples.
Hi, its not a issue, i followed your Git repository and trying to implement same for my project, (my stack is reactive mongo and playframework) ,in your code you created consumers using (Consumer.committableSource), i also did the same, but the problem is i need to re-process around 40 lakh to 50 lakh records, but it takes more time( nearly 1 day). and the problem is when i see the cpu percentages , my analytics is using very less cpu percentage.
my code is:
testConsumer.create("testconsumer")(context.system)
.groupedWithin(batchSize, batchAwaitTime milliseconds)
.mapAsync(incidentParallelism)({ records =>
//logger.warn("batch size for Incidents is " + records.size)
var offsetBatch = CommittableOffsetBatch.empty
val incidentList = records map { eachRecord =>
offsetBatch = offsetBatch.updated(eachRecord.committableOffset)
Json.parse(eachRecord.record.value()).as[IncidentModel]
}
Future.sequence(processRecords(incidentList.toList, isIncidentsNeedsProcessing)).map { _ =>
offsetBatch
}
})
.mapAsync(2)(_.commitScaladsl())
.runWith(Sink.ignore) recover {
case e: Exception => logger.warn(" Exception occurred in actor " + e)
}
my consumer configuration is :
akka.kafka.consumer {
poll-interval = 50ms
poll-timeout = 2s
stop-timeout = 30s
close-timeout = 100s
commit-timeout = 100s
wakeup-timeout = 3s
max-wakeups = 10
use-dispatcher = "akka.kafka.default-dispatcher"
kafka-clients {
enable.auto.commit = false
heartbeat.interval.ms = 1500
session.timeout.ms = 10000
max.poll.records = 500
}
}
iam trying hard to know the mistake i did. help me !!!
Seems it's not up to date anymore, and people keep referring to it since it's a top result in google search
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.