scala: poll a http server via post for result -
i using scala in sprak streaming. need write client (in multi-threaded environment) first sends http post request (text file payload) server returns id
, have call same server id
status. second post call return total line processed till time (like progress tracking). have keep polling until returns count length of file sent(i.e. line processed).
what efficient way implement polling second post call? using closeablehttpclient
poolinghttpclientconnectionmanager
http requests org.apache.http.impl
package.
Comments
Post a Comment