What happens if Restful resources are accessed by multiple clients? Do you need to make it thread-safe?

Solution

For every incoming request, a new resource instance is created hence there is no need to make restful resource thread-safe or make it synchronized. Due to this multiple clients can access this resource concurrently.

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media