I made an application that serves as an autobuyer. Making it as fast as possible is crucial to get to the item faster than anyone else. I am using an infinite loop (i.e. for(;;)) to make continuous http requests and then parsing the JSON result.
Does anyone know how to make multiple simultaneous requests ? Mine currently does about 3 requests a second. Also is java not appropriate for this sort of application ? Should I consider using another language maybe ?
Thank you very muuuch !
Edit: I use a search function like
for(;;){
search(323213, 67);
search(376753, 89);
}
public void search(int itemID, int maxPrice) {
// sets the http request with the need cookies and headers
// processes the json. If (itemId==x&&maxPrice>y) ==> call buy method
}