cancel
Showing results for 
Search instead for 
Did you mean: 

Q: How to establish connection between web server and ESP?

0 Kudos

Dear colleagues,

we started a project web-click stream analysis for '.com' sites. We configured a ESP project as rest provider, use piwik to capture the clicks and send HTTP POST to ESP to push click event into ESP.

My questions are:

1.does each POST call initiate a complete new connect? If yes, it cannot be performant, what shall I do to keep the connection between the website webserver and ESP, so that the connection is established when the webserver is ab and running, each POST call does not re-connect?

2. is socket-connection better suited for my use case? If yes, could someone please provide an example?

Thanks and regards,

Tao

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Tao,

WSP does not reconnect on every request - the connection is cached.

I would need a bit more detail about your use case to make suggestions on the best way forward. Some things to consider - would you be connecting over WAN? How many clients are you expecting to connect?  Also do you expect the connections to be long lived?

Regards,

Shubhra