Using Gatling to load test the token validation process using shared databases
This recipe shows you how to evaluate the performance of a chosen architecture for the OAuth 2.0 Provider created for the last recipe that relies on shared databases as a TokenStore
.
Getting ready
To run this recipe, you will have to use Gatling to create one load testing project. Gatling relies on the Scala language, but don't worry about it because I have already prepared a base project with Maven that will be helpful for this recipe. Afterwards, we need some IDE to edit all the files appropriately. You can use the Scala IDE for Eclipse, which is available at http://scala-ide.org/ or you can use IntelliJ (to use IntelliJ you must install the Scala plugin by navigating to Preferences
/Plugins
). To run this recipe, we will also need the applications created for the last recipe to be running.
How to do it...
Perform the following steps to create and load test the OAuth 2.0 Provider that uses Redis as a shared token...