Using Multithreading/concurrency in real world application

Staples
QCUz65

Go to company page Staples

QCUz65
Mar 26, 2020 14 Comments

I develop backend microservices in Java & so far haven’t used any Multithreading/concurrency paradigm in my code. I want to know from my fellow engineers, are you guys using it in your e-commerce or retail store or any other backend systems? And if so, then where exactly are you guys using?
All what I do is create my api abd deploy it in cloud. And using auto scaling we manage the performance.
Any pointers would be really helpful.

yoe - 6
tc - 110k
loc - Framingham, MA

#uber #lyft #dropbox #oracle #twitter #linkedin #microsoft #apple #facebook

comments

Want to comment? LOG IN or SIGN UP
TOP 14 Comments
  • Apple
    amina

    Go to company page Apple

    amina
    I use multi threading in app development if it helps. Its the only way UI runs on a high priority thread and others on low priority thread
    Mar 26, 2020 3
    • Apple
      amina

      Go to company page Apple

      amina
      Yeah, think about batching for offline evaluation
      Mar 26, 2020
    • Staples
      QCUz65

      Go to company page Staples

      QCUz65
      OP
      But in the Java world if you are using batch processing and using spring batch ... those concurrency paradigm is used within the framework. We don’t write any concurrent code ourselves.

      p.s. I haven’t developed any batch process so my knowledge on that subject is limited.
      Mar 26, 2020
  • Google
    nightclub

    Go to company page Google

    PRE
    VMware
    nightclub
    You never used a threadpool ?
    Mar 26, 2020 1
  • Walmart
    AdXk60

    Go to company page Walmart

    AdXk60
    Moved from Guava futures to Completable futures n I am loving it.
    We use executor service as threadpool manager / read n write executors.
    Apr 2, 2020 0
  • Walmart
    balakee

    Go to company page Walmart

    balakee
    I use it every day in multiple scenarios. Example of some
    1) fetching data from data store
    2) efficiently read from and/or write to in-memory cache which needs to refreshed periodically

    Etc
    Apr 1, 2020 0
  • Simple use case. We have a job that needs to change data across the db. Our db has 32 partitions so we create 32 threads, one for each partition, so that each thread can work independently and therefore increase the overall execution speed.
    Mar 27, 2020 0