Access to zeebe without grpc

Hello teams,

I have a question if there are any other way to access to zeebe engine without using grpc .

Could we access it via a rest connector ?

Thanks
Ritaa

Hi Ritaa,

This is not out of the box possible. In the community there is someone who created a rest API on top of the gRPC API so maybe that is something for you to look into, see GitHub - korthout/camunda-platform-rest-api: A REST API for Camunda Platform 8

Can you also elaborate a bit more on what you want to achieve so that I might can give you some more advice?

Regards,

Maarten

2 Likes

Hi,

A few more options to access via Rest…

Using a client sdk eg java or c# etc you could expose your own Rest controller…

Another option could be to use an API gateway, eg Azure APIM to mediate Rest to grpc calls…(note ive not tried this yet…)

Regards

Rob

Hello @MaartenvV @Webcyberrob

Thanks a lot for your answers .

You saved my day!

Hello @MaartenvV ,

I thought that without installing the images of tasklist and operate . I will not be able to access to these rest apis .

So for this reason the only communication between my services and zeebe can be only via grpc ? Or am I wrong ?

Thanks

Hi Ritaa,

If you do not install tasklist and operate you cannot use the REST API that those apps offer indeed. As suggested by me and Rob you can use one of the clients, the Java client for example, to build a REST API on top of the gRPC API so that you can use REST instead of gRPC to communicate with zeebe. Another option is that you export all the events from zeebe to elastic search and build a REST API on top of that, this is also how tasklist and operate work.

Regards,

Maarten

Hello @MaartenvV

Thanks for your answer.

I have another question about zeebe and elasticSearch.if we will not use operate or tasklist or optimize, elasticSearch is not mandatory.

So where zeebe persist the processus instances data . How zeebe handle the data without elasticSearch??? If we don’t want to use elasticSearch??

Hi @Ritaa,

The Zeebe engine itself writes all the states in files directly to disks.

You can find more details here: Resource planning | Camunda 8 Docs

These files cannot be accessed from the outside, only exported data are readable from a client.

Hope this helps, Ingo