Skip to content

Think your software is fault tolerant? Prove it! - Christopher Batey

A
Hosted By
Aaron R.
Think your software is fault tolerant? Prove it! - Christopher Batey

Details

Think your service is fault tolerant? Well this talk is about proving it with protocol level test doubles.

This talk will not be about in-process mocking, spying or stubbing. Instead, we will describe the benefits of using test doubles at the protocol level.

When you are building a service, either monolithic or micro, you will have external dependences such as databases, message queues and/or HTTP services. The key idea is that in order to achieve fault-tolerance you must test failure scenarios across all your external dependencies and, crucially, network failures that may occur between your application and these other services.

The talk will be structured as follows:

  • Concept and motivation: prepare to be convinced you should be testing this stuff!

  • Two specific examples:

  1. Using Wiremock for HTTP dependencies with examples of how to test malformed responses, delays and invalid HTTP

  2. Database: Stubbed Cassandra - a test double I built for Apache Cassandra to allow the simulation of faults typically only found in large multi data centre clusters.

  • How to simulate network faults using tools like saboteur, tc and iptables.

My hope is by the end of this talk you'll want to go and build a test double for all your dependencies.

I'll cover the above topics via slides and short demos.

Who should attend:

Any hands on technical person: developers, QAs, architects

Bio:

Christopher Batey (@chbatey) is a Software Engineer by trade and is currently employed by DataStax as a Technical Advocate. Chris has also worked for Sky, where he helped build their online television platform, and IBM, where he helped develop a variety of messaging products.

He spends a lot of his own time contributing back to the software community and is a active member of the London Java Community, London Software Craftsmanship Community and Cassandra London. Christopher has a particular interest in building effective automated tests for every scenario, including network failures, database faults and services returning junk. For that reason he built an open source test double for Apache Cassandra: Stubbed Cassandra. He also blogs regularly at: http://christopher-batey.blogspot.co.uk/ .

Agenda:

18:15: Doors open

18:30: Main presentation (1 hour approx.)

Please Note:

Nearest tube: Barbican
Nearest Coffee Shop: Sun Coffee Shop, 55-63 Goswell Road, London, EC1V 7EN for if you arrive early

*Please note this is an LJC event. Skills Matter are hosting this event and are handling the attendance - it is essential that you confirm your place at this link: https://skillsmatter.com/meetups/7252-think-your-software-is-fault-tolerant-prove-it

Event organised by the awesome folk at RecWorks - check out the blog here: http://blog.recworks.co.uk/ (http://recworks.co.uk/)

Continue the conversation at our Slack Group:londonjavacommunity.slack.com (http://londonjavacommunity.slack.com/) - Sign up here if you're not a member: https://barrycranford.typeform.com/to/IIyQxd

http://photos3.meetupstatic.com/photos/event/c/5/0/0/600_140270432.jpeg

Photo of LJC - London Java Community group
LJC - London Java Community
See more events
Skills Matter CodeNode, 10 South Place
London, EC2M 2RB, GB · London