Rick Prata
03/10/2019, 4:55 AMgildor
03/10/2019, 6:04 AMRick Prata
03/10/2019, 7:04 AMgildor
03/10/2019, 7:19 AMI tried to use HttpClient() passing the engine I’m using (Apache). It kind of worked but I am not sure if that’s the best solutionWhy? What is your concern? This is exactly use case of http client
Also, as far as scalability goes, how can I keep my architecture good enough to fire the scheduled tasks every 2 minutes for each account I have on the database? Any suggestion?it really depends on your use case and what is your strategy in terms of data invalidation and API that remote server provides, request each profile separately may be a problem, batch request of data sounds like more scalable approacch
Rick Prata
03/10/2019, 6:17 PMmp
03/10/2019, 10:56 PMgildor
03/10/2019, 11:24 PMI'm new to ktor and I don't know if there is a better or proper way of doing so.I don't think that this is something ktor specific, you just use Ktor http client, but even in case of Ktor Server you can use any http client implementation, you are not limited by Ktor Http client.