This depends on how you configure the auto.offset.reset property in your
consumer.

By default, it is set to "latest", so that behavior will start with the
last published message on the topic by default if you don't have a stored
offset for your consumer group ID.

https://kafka.apache.org/documentation/#newconsumerconfigs

Cheers,
Tim

On Thu, Sep 21, 2017 at 10:39 AM, Konrad “ktoso” Malawski <
[email protected]> wrote:

> Same as in “normal” Kafka, you’d have to know the offset I guess.
>
> —
> Konrad `kto.so` Malawski
> Akka <http://akka.io> @ Lightbend <http://lightbend.com>
>
> On 21 September 2017 at 06:36:17, Zlatko Josic ([email protected])
> wrote:
>
> Hi,
>
> Can I get last published message on Kafka's topic using akka stream kafka
> API ?
>
> Zlaja
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Tim Moore
*Senior Engineer, Lagom, Lightbend, Inc.*
[email protected]
+61 420 981 589
Skype: timothy.m.moore

<https://www.lightbend.com/>

REACTIVE SUMMIT 2017
------------------------------
MICROSERVICES. FAST DATA PIPELINES. DISTRIBUTED SYSTEMS.
Austin (TX) - October 18-20, 2017
Talks, Workshops, Networking - REGISTER
<http://www.reactivesummit.org/registration?utm_source=email&utm_medium=email-signature&utm_campaign=EVT-2017-OCT-Reactive-Summit-Austin&utm_term=none&utm_content=none>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to