O'Reilly logo

Learning Apache Thrift by Krzysztof Rakowski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Further testing and other exercises

In our examples, we tried to submit some valid and invalid data to see how the service performs and if we are able to handle the errors properly. We didn't, however, test every possible scenario.

As an extra exercise, I suggest that you attempt the following tasks:

  • Testing each of the functions in the Ruby client with both valid and invalid arguments
  • Testing border cases and different combinations of valid and invalid parameters
  • Writing automatic unit tests for the methods implemented in the server
  • Experimenting with different transports, protocols, and servers
  • Adding client and server code as a module to bigger applications, for example, written in some framework
  • Running performance tests and comparing response times ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required