Streaming job vs looped batch job for consuming data from Kafka queueWhy no Kafka data ingestion for some batches?Spark Streaming job behaves like a batchMake Spark Streaming start Spark Batch jobsSpark Batch is pausing Spark Streaming jobRunning kafka consumer(new Consumer API) foreverHow to reprocess a batched Kafka StreamConsume kafka data to HDFS Spark BatchBest practices for Kafka streamsSpark Streaming Kafka Stream batch executionManaging Offsets with Spark Structured Batch Job with Kafka

Videos of surgery

What was the point of "Substance"?

Notice period 60 days but I need to join in 45 days

Is there a word or phrase that means "use other people's wifi or Internet service without consent"?

74S vs 74LS ICs

Which meaning of "must" does the Slow spell use?

Why is there not a willingness from the world to step in between Pakistan and India?

Can a character use multiple reactions in response to the same trigger?

Unlock your Lock

Half filled water bottle

Why did James Cameron decide to give Alita big eyes?

How do I insert two edge loops equally spaced from the edges?

Did the Apollo Guidance Computer really use 60% of the world's ICs in 1963?

Alternatives to Network Backup

Why did the population of Bhutan drop by 70% between 2007 and 2008?

Stolen MacBook should I worry about my data?

A first "Hangman" game in Python

If I said I had $100 when asked, but I actually had $200, would I be lying by omission?

Grep contents before a colon

助けてくれて有難う meaning and usage

Why does matter stay collapsed in the core, following a supernova explosion?

Many many thanks

Why does a sticker slowly peel off, but if it is pulled quickly it tears?

Can an object tethered to a spaceship be pulled out of event horizon?



Streaming job vs looped batch job for consuming data from Kafka queue


Why no Kafka data ingestion for some batches?Spark Streaming job behaves like a batchMake Spark Streaming start Spark Batch jobsSpark Batch is pausing Spark Streaming jobRunning kafka consumer(new Consumer API) foreverHow to reprocess a batched Kafka StreamConsume kafka data to HDFS Spark BatchBest practices for Kafka streamsSpark Streaming Kafka Stream batch executionManaging Offsets with Spark Structured Batch Job with Kafka






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















For example, if I have a Java application that is always running and it's reading data from a Kafka queue as it arrives, with the purpose of getting data and forwarding it to a db... Is there any major downside to infinitely looping through a batch-job rather than doing it through Kafka Streaming/Kafka Connect? Considering I'm not pointlessly creating or wasting resources each loop and that I'm handling the multithreading properly, are there any major downsides or reasons not to do this? Is it a viable option for a long running application?



(I have reasons for not using Kafka Streams/Connect with our use case)










share|improve this question
































    1















    For example, if I have a Java application that is always running and it's reading data from a Kafka queue as it arrives, with the purpose of getting data and forwarding it to a db... Is there any major downside to infinitely looping through a batch-job rather than doing it through Kafka Streaming/Kafka Connect? Considering I'm not pointlessly creating or wasting resources each loop and that I'm handling the multithreading properly, are there any major downsides or reasons not to do this? Is it a viable option for a long running application?



    (I have reasons for not using Kafka Streams/Connect with our use case)










    share|improve this question




























      1












      1








      1








      For example, if I have a Java application that is always running and it's reading data from a Kafka queue as it arrives, with the purpose of getting data and forwarding it to a db... Is there any major downside to infinitely looping through a batch-job rather than doing it through Kafka Streaming/Kafka Connect? Considering I'm not pointlessly creating or wasting resources each loop and that I'm handling the multithreading properly, are there any major downsides or reasons not to do this? Is it a viable option for a long running application?



      (I have reasons for not using Kafka Streams/Connect with our use case)










      share|improve this question
















      For example, if I have a Java application that is always running and it's reading data from a Kafka queue as it arrives, with the purpose of getting data and forwarding it to a db... Is there any major downside to infinitely looping through a batch-job rather than doing it through Kafka Streaming/Kafka Connect? Considering I'm not pointlessly creating or wasting resources each loop and that I'm handling the multithreading properly, are there any major downsides or reasons not to do this? Is it a viable option for a long running application?



      (I have reasons for not using Kafka Streams/Connect with our use case)







      java loops apache-kafka streaming kafka-consumer-api






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 3 at 22:23







      Artanis

















      asked Mar 27 at 20:03









      ArtanisArtanis

      32517 bronze badges




      32517 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0















          So I talked to my staff engineer. It turns out that it is a viable option to do an infinite loop through a batch job as long as you're doing it correctly. Meaning you've fine tuned the configuration, your pausing briefly between loops, and you're properly handling the life of any connections/consumers/producers if they were to fail. Another team is already doing it in prod environment.






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55385576%2fstreaming-job-vs-looped-batch-job-for-consuming-data-from-kafka-queue%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0















            So I talked to my staff engineer. It turns out that it is a viable option to do an infinite loop through a batch job as long as you're doing it correctly. Meaning you've fine tuned the configuration, your pausing briefly between loops, and you're properly handling the life of any connections/consumers/producers if they were to fail. Another team is already doing it in prod environment.






            share|improve this answer





























              0















              So I talked to my staff engineer. It turns out that it is a viable option to do an infinite loop through a batch job as long as you're doing it correctly. Meaning you've fine tuned the configuration, your pausing briefly between loops, and you're properly handling the life of any connections/consumers/producers if they were to fail. Another team is already doing it in prod environment.






              share|improve this answer



























                0














                0










                0









                So I talked to my staff engineer. It turns out that it is a viable option to do an infinite loop through a batch job as long as you're doing it correctly. Meaning you've fine tuned the configuration, your pausing briefly between loops, and you're properly handling the life of any connections/consumers/producers if they were to fail. Another team is already doing it in prod environment.






                share|improve this answer













                So I talked to my staff engineer. It turns out that it is a viable option to do an infinite loop through a batch job as long as you're doing it correctly. Meaning you've fine tuned the configuration, your pausing briefly between loops, and you're properly handling the life of any connections/consumers/producers if they were to fail. Another team is already doing it in prod environment.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 3 at 22:11









                ArtanisArtanis

                32517 bronze badges




                32517 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55385576%2fstreaming-job-vs-looped-batch-job-for-consuming-data-from-kafka-queue%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript