Module for replaying Rest API endpoint with Twitter's Diffy.
Diffy is a tool that lets you execute GET requests between two servers, in general one of them is your production server and the other one is the "candidate" server that contains the new code that will be tested. Diffy multicasts the requests that it receives into both servers, compares the responses and displays on a dashboard if any differences were found.
Here at Split.io we use to certify our different micro services.
What is Diffy Replayer?
Diffy Replayer is the module we use to intercept request made to our production JAVA Restful servers and replay them through Twitter's Diffy.
Set up is pretty straightforward:
- Simply add DiffyReplayerFilter to your JAVA Restful Server (if you are using Guice, simply binding the DiffyReplayerModule, if not you can take a look at this blog for some ideas on how to configure a filter)
- Add to your resources directory the diffyreplayer.properties.dev file. Here you will specify where the Diffy Server is running.
- Add the @DiffyReplay annotation to the GET endpoint that you want to replay.
That is all, once deployed queries to the specified endpoint will be sent to Diffy Server!
Take a look at the Wiki for more information about configuration.