Case Scenario:
Multiple request coming for inserting data into database in asynchronized
way. Need to be ensure this request not making any bottleneck in database
connection and that process usage (thread usage) under controllable.
From below code snippet can understand how to
implement the same in simple way, keep in mind that avoided persisting queuing
system because only need to emboss parallel threading.
Process Flow
|
Process Flow |
Each
Process Chanel class
|
Each
Process Chanel class |
Process Channels Handler Class
|
Process Channels Handler |
Data Transferring POJO Class
Comments
Post a Comment