# Testing a non-http service with Gatling?

**URL:** <https://community.gatling.io/t/testing-a-non-http-service-with-gatling/1208>\
**Category:** Gatling (Open-Source)\
**Created:** [July 24, 2014, 6:54pm UTC](https://community.gatling.io/t/testing-a-non-http-service-with-gatling/1208 "2014-07-24T18:54:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sajjad\_Lateef](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Sajjad\_Lateef](https://community.gatling.io/u/Sajjad_Lateef)\
**Post date:** [July 24, 2014, 6:54pm UTC](https://community.gatling.io/t/testing-a-non-http-service-with-gatling/1208/1 "2014-07-24T18:54:26Z")

</div>

I have to test a non-http service responding to a binary protocol.

The sequence is:  
a. Client connects over SSL

b. Waits for data  
c. Reads data, ignore if heartbeat, respond if real data  
d. goto wait

This is pretty similar to SSE, except with the messages in binary.

For the simulation, based on the data, the simulation will have to invoke some  
https calls (which is already implemented with gatling).

Is it possible to test the non-http service described above with gatling (any version)?

Thanks  
Sajjad

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [July 25, 2014, 7:56am UTC](https://community.gatling.io/t/testing-a-non-http-service-with-gatling/1208/2 "2014-07-25T07:56:09Z")

</div>

You’d probably have to write your own protocol support.

Do you have Java client library for your protocol? If so, is it non blocking?

---

<div class="post-metadata">

**Author:** ![Sajjad\_Lateef](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Sajjad\_Lateef](https://community.gatling.io/u/Sajjad_Lateef)\
**Post date:** [July 25, 2014, 3:48pm UTC](https://community.gatling.io/t/testing-a-non-http-service-with-gatling/1208/3 "2014-07-25T15:48:58Z")

</div>

I don’t have the client lib in Java (it’s in C++) but I can reimplement in Java.

I’ll read up on protocol support.

Thanks for the tips.
