Spiderpig86 / Spring-Bean-Singleton

:coffee: A simple demonstration of the non-thread safe nature of singleton Java beans in Spring.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Bean Demo

This is a demo project is a small API that contains a stateful singleton bean. The master branch contains the fixed code, but the race-condition branch contains the non-thread-safe version of the API.

The accompanying blog post can be found here.

To demonstrate the behavior mentioned in the blog post, spammer.py is bundled with the repo.

About

:coffee: A simple demonstration of the non-thread safe nature of singleton Java beans in Spring.


Languages

Language:Java 70.3%Language:Python 29.7%