Kafka Tutorial - Producer Configs

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024

Комментарии • 39

  • @ScholarNest
    @ScholarNest  3 года назад

    Want to learn more Big Data Technology courses. You can get lifetime access to our courses on the Udemy platform. Visit the below link for Discounts and Coupon Code.
    www.learningjournal.guru/courses/

  • @suryabh7387
    @suryabh7387 6 лет назад +1

    This is an awesome tutorial.. I got entire concept to start a project in couple of hours. Thank you!!

  • @mahammadshoyab9717
    @mahammadshoyab9717 7 лет назад +4

    soory to ask so many questions,your way of explanation is simply awesome ,if it goes for all bigdata skills like hive,hbase,sqoop,pig,spark sql, etc.......it will be very helpful for alot of people.

  • @nilaytiw
    @nilaytiw 6 лет назад +3

    The way you are explaining it is very helpful to understand such a complex thing

  • @KoushikPaulliveandletlive
    @KoushikPaulliveandletlive 2 года назад

    No paid course as such good and brief explanation.

  • @mahanteshangadi6738
    @mahanteshangadi6738 3 года назад

    Really ... your presentation is so simple to understand

  • @krushnaswain8887
    @krushnaswain8887 2 года назад

    On failure of asynchronous call, should I write retry logic inside onFailure method ? Or, it will be taken care by producer retry config parameter?

  • @chaitanyatanwar8151
    @chaitanyatanwar8151 3 года назад

    Thank you!

  • @princesanghi6464
    @princesanghi6464 6 лет назад

    Hi Thanks for such a nice explanation. Can we configure the Producer Configuration topic wise?

  • @saisantoshkalla113
    @saisantoshkalla113 4 года назад +1

    For ordering guarantee you gave two option
    1. Synchronous send
    2. max.in.flight.request.per.connection=1
    In the example, you explained that if the first batch of 5 messages failed then the second batch of 5 messages will be tried and if it succeeds then there will be problem in ordering.
    In the similar way, when the max in flight requests per connection is set to 1 (async send) and if it fails then the second message will be tried and if it succeeds then also there will be order issues. Am i correct? If i'm correct please explain how this is a solution for ordering guarentee.
    correct me if am missing something here.

    • @LivenLove
      @LivenLove 3 года назад

      I have the same question.. could you please answer sir??

    • @0equalsTo1
      @0equalsTo1 2 года назад

      max.in.flight.requests.per.connection means the producer can not (async) send more records than this value(default 5 in the current version) until unless at least one of those requests has been acknowledged.
      max.in.flight.requests.per.connection=1 means after sendind 1 record producer have to wait for that response.

  • @MrPavel0
    @MrPavel0 4 года назад

    what abaut wab sarrvar?

  • @zeinabashjaei3302
    @zeinabashjaei3302 6 лет назад

    Thanks for this excellent collection. I have a question about offsets.topic.replication.factor parameter that does not make sense for me. Could you please provide some explanation. Also how it differs from in-sync replica (ISR). Thank you

    • @ScholarNest
      @ScholarNest  6 лет назад

      Replication factor tells how many copies do you want. ISR tells who has the latest copy same as the topic leader.

  • @shekharpandey166
    @shekharpandey166 6 лет назад

    Sir, in my college project, I am fetching my data from mysql using logstash to elasticsearch. But now I am using in between kafka. So can you kindly tell me how to transfer data from logstash to kakfa. and later I can fetch from that to elastic.

  • @swasavlogs
    @swasavlogs 4 года назад

    Hi, I've recently started working on spark, I want to post all messages in one shot to the Kafka but I've challenge over here I've about 1M message are there to post but it can able to post few before timeout,
    Can you help me with
    POST all or not all before retry
    What will be best configs for me,
    1. No need of order guaranteed
    2. Should not post duplicate messages on retry

  • @MonojitBarua
    @MonojitBarua 4 года назад

    hello Sir,
    your explanation is very helpful. one question,
    if acks=0 and at the same time if
    RecordMetadata r = producer.send().get(); gets called then will r going to get the record metadata informations as acks=0 ?

  • @vivekpratapsingh9957
    @vivekpratapsingh9957 4 года назад +1

    can you do something about the sound and picture at the starting of the video? doesn't give a good vibe and put it like a childish content though it's not.

  • @mkvjaipur
    @mkvjaipur 7 лет назад

    max inflight is still not clear, could you please elaborate it. why its limited upto 5

    • @ScholarNest
      @ScholarNest  7 лет назад

      They consume memory. You can increase the number if you have enough memory to buffer more messages.

    • @pramodsripada2380
      @pramodsripada2380 7 лет назад

      Learning Journal, by memory do you mean the producer should keep a buffer of all the messages until it all the in-flight requests are resolved?

    • @psangawar7130
      @psangawar7130 6 лет назад

      Also once the max is reached for inflight, the other messages become synchronous? This was not too clearly explained I think...Appreciate your patience in answering and the awesome tutorials...

  • @archanarajput5160
    @archanarajput5160 4 года назад

    can you explain linger.ms property?

  • @durgadeep4988
    @durgadeep4988 7 лет назад

    Does Kafka guarantee messaging ordering for messages in a specified batch.size ?

  • @TheNayanava
    @TheNayanava 7 лет назад

    I thought, the problem of ordering could also be solved, if we send the timestamp as a parameter to the ProducerRecord object. Please correct me if I am wrong

    • @sumitjha392
      @sumitjha392 6 лет назад

      With your approach, consumer would have to pull entire data from the queue and then sort (based on timestamp parameter) at its end. But this is not feasible. We would not know the range in which the message are not ordered, pull that entire range and then sort at consumer end. Anyway that's a design decision, in theory a consumer can *insert* message at the appropriate position as it pulls message from Kafka (which again as I said depends on problem you are solving)

  • @ramasubbareddy6147
    @ramasubbareddy6147 6 лет назад

    I have basic question like in a given kafka cluster can have one leader always or many leader ?

    • @ScholarNest
      @ScholarNest  6 лет назад +2

      One leader. However, I think you are missing one important point. It is not the leader of the cluster. It is the leader of the partition. So in fact there are many leaders in a cluster, one for each partition.

  • @charlsjoseph
    @charlsjoseph 6 лет назад

    if you set the acks config to 0, you would not get the acks and wont call any call backs in case of async and future.get() in case of sync calls. But when i set this to 0, both cases it invokes the callbacks(async) and future.gets called. what does this mean ?

    • @ScholarNest
      @ScholarNest  6 лет назад

      +Charls Joseph did I say that? or you read it somewhere?

    • @charlsjoseph
      @charlsjoseph 6 лет назад

      my understanding is that if you set the ack to 0, producer wouldnt get the acks back from kafka broker. but when i tried with ack = 0 for async, the callback is getting called. ideally this is not supposed to happen if the broker is not acknowledging the message, correct ?
      I didnt get the actual use case of ack=0

    • @ScholarNest
      @ScholarNest  6 лет назад

      +Charls Joseph Well, your understanding is incorrect. Watch the video once again. A bit carefully this time. acks controls the acknowledgement from followers for replication, not the acknowledgement from broker to producer.

    • @LivenLove
      @LivenLove 3 года назад

      @@ScholarNest Sir at 3:42, you mentioned that producer get acknowledgement from broker as metadata or exception.

    • @rajasekharchittiprolu797
      @rajasekharchittiprolu797 Год назад

      Hi sir please correct the video if what u said in above message is correct

  • @ashick91
    @ashick91 4 года назад

    where can we set these producer configs?

    • @aijaz4441
      @aijaz4441 4 года назад

      Since the Bootstrap, key, value and the custom serializer were sent as Properties object, I am assuming these configurations are also set the same way.

  • @ThePentanol
    @ThePentanol 4 года назад

    Poor explanation of the third parameter