octue / octue-sdk-python

The python SDK for @Octue services and digital twins.
https://octue.com
Other
10 stars 4 forks source link

Make the octue communications API explicit #612

Closed thclark closed 10 months ago

thclark commented 1 year ago

Feature request

Use Case

We're doing load testing of octue services, and of a worker running django_twined to orchestrate them. So we want to simulate messages coming back to the django_twined app, as if they were coming from running services.

Current state

It's quite difficult to figure out how to make such messages. We're digging deep into the octue library to figure out how to generate realistic events for log_records and other items.

Wider issue

The set of messages that can come back from an octue service is not defined in any one place. This is a big deal, because this clear, opinionated API surrounding inter-service communication probably is our biggest selling point.

Also, it's worth pointing out that it doesn't matter if it's using the octue library or not. Any process that places events onto a pubsub topic in this format is behaving as an octue service. So fundamentally, this is how we create services in languages other than python.

Proposed solution

cortadocodes commented 1 year ago

Questions:

To do in the next service communication breaking change:

cortadocodes commented 1 year ago

Other to-dos: