I have a SOAP web service and am trying to figure out how to save / log the last 10 requests for each user. Each user must send their user / pass in each request, so it is easy to find out from which request arose. With these last 10 requests saved, my goal is to create some kind of page that will allow them to log in with their credentials and view the raw request, the actual SOAP message, the http header information and all I can think of.
The thing is to allow people to fix problems with their connection, instead of contacting me every time they cannot connect, there are problems with formatting their request, etc.
My first thought was to store all of this information in memory in a hash table or something like that, but it can have scalability problems when we have hundreds / thousands of users who hit the web service.
We could use our database to store these requests. Instead of hitting the database each time, I may need to create some kind of “buffer” mechanism that will update the database only after the buffer gets to a certain number of requests. Is there an existing library or mechanism that will do this?
We cannot store these requests in the file system on the computer hosting the web service. Since these requests may potentially contain sensitive information, this is a business solution that I will need to work on.
Or maybe there is a better way to achieve what I'm trying to do?
source
share