Are ServerEvents threadsafe?

The title says it all really but here’s some more context.

We have a service that invokes a number of long running tasks. Each task is run on a separate thread on .net’s ThreadPool.

Because of the long running nature we wish to update the client with progress and plan on using ServerEvents to send the update messages.

I guess most of the ServiceStack architecture is thread safe by nature but can anyone confirm that ServerEvents are thread safe?

1 Like

Yes you can use the IServerEvents API to send notifications from multiple background threads.

1 Like

Great news, thanks @mythz