java server side processing of a sting and parallel processing -


i new java , accept string contains stockmarket detail. if existing string contains buy order of script, find seller given price. if there no match available, add new order existing buy order queue.

these needs done fast possible or preferrably parallely given application can process many orders possible in least amount of time.

1) instead of accepting string,if possible accept json or xml , convert object named stockmarket. --> find plenty of libraries on net doing , code clean , manageable.

2) faster processing subjective matter , depends on how code. if can post code have tried, can check if performance optimization possible.

3) must having method under class handles stated logic. if method doesn't modify class level variable, can parallelize method calls. else, need put code snippet class level variable(s) modified in "synchronized" block. , parallelization should not problem.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -