Relative Content

Tag Archive for performance

Strategy for clients to retrieve real-time log from HTTP server

I have an HTTP Server Service application which has its own logging mechanism. It’s written in Delphi. I would like to provide a way for multiple clients to connect to this service and get a real-time update of the log. The log in the service moves rather fast, there’s a lot of things to log. There may be up to 50 messages within 1 second at times. The existing log which is already implemented is not saved, it’s only kept in the memory of the server service – where I will need to distribute it to any client which needs it. Once all clients have a log message, it should be deleted.

Why not use unmanaged safe code in C#

There is an option in C# to execute code unchecked. It’s generally not advised to do so, as managed code is much safer and it overcomes a lot of problems.