I’ve read through the first steps and advanced guides, and poked around the wiki, but I still need a bit more direction. Apologies if this is a repetition or I’ve missed documentation on it.
I’d like to load test a web application which sits behind a Flash Rich Internet Application. In short, the Flash client makes AMF calls to a BlazeDS Java endpoint. The load testing frameworks I’ve found so far that speak AMF are proprietary, expensive, and/or unproven. To keeps things simple and feasible, I want to cut out the Flash side and instead load test by making direct Java calls to the endpoint, and get statistics for those calls. From what I’ve read, Scala and Java are byte code compatible and straightforward to integrate, and Gatling can cope with the large number of actors I need. So I could theoretically achieve what I need if I can get Gatling scenarios to make the method calls.
Are there examples or references on writing scenarios that make Java calls in this way?
Yes, using Java code from Scala is very straightforward (the other way is a bit more tricky). Actually, we use a lot of Java library in Gatling, like Netty and async-http-client.
We have yet to provide extension point over HTTP so one can plug in a serializer/deserializer. We intend to do that in Gatling 2. This feature would be useful for other serialization protocols such as GWT-RPC.
Which java AMF library do you have in mind. I guess it implies providing the Java DTO classes, right?
Is there any example you can point me to of a Gatling scenario making a Java call? That would really help me piece this together.
re: for AMF, IIRC, either Adobe’s BlazeDS or LiveCycle Data Services handle the serialisation to and from Java DTOs when using a Java backend (the Spring BlazeDS project delegates to the former)
I’m planning on writing a simple protocol handler to run code and record the runtime on a flight this Friday; the DSL I have in mind is something like this: