Connection Pool Issues

Certified Senior Developer

Hi Everyone,

 We have a requirement where  Application is writing 500 rows parallely via startprocess smart service(Loop).

 

Now for every Write opertion sync will run that means sync will run 500 times in backend. It seems to be creating connection pool issue 
though connection pool is 200.

 

can some one suggest the best soultion in this case?

Thanks in Advance!!

  Discussion posts and replies are publicly visible

Parents Reply
  • I'd suggest you could still potentially batch the processing into larger batches than 1 row each - maybe 10 rows per process instance?  This would reduce the number of sync calls considerably, and probably not increase your processing time very much overall.

    An additional thing to consider would be to implement a timer at the end of each process that pauses it a few seconds.  I've set up something before where each instance gets a random number of seconds between 1 and 30, and pauses that long, which gives the back-end engines enough time to process the different instances without accidentally trying to process every single one in one big lump, and thus getting hung up on itself.

Children