IBMStreams / streamsx.microservice

Provide documentation, utilities, examples for Streams microservices
Apache License 2.0
0 stars 3 forks source link

Create IMPLELMENTATION_GUIDELINES.md #1

Closed ddebrunner closed 6 years ago

ddebrunner commented 6 years ago

Added an initial implementation guidelines that I created/proposed a while ago.

chanskw commented 6 years ago

@ddebrunner For data publish, I added a strategy for versioning of the data scheme in the health toolkit. Here's what I suggested there:

Publishing Data

Services employ a publish-subscribe model to receive or send data to another service. When publishing data, topic definition should follow these guidelines:

Subscribing Data

To subscribe data from an upstream application, a service should employ the following guidelines:

I think this should be part of the base guideline. I'd like to get you feedback on this.

I think the data topic and schema should be considered part of the service's API. Therefore we need a way to figure out how to evolve it.

chanskw commented 6 years ago

Do you have any objection to merging this now, so it's easier to look at. And we keep working on this?

ddebrunner commented 6 years ago

@chanskw Doesn't seem like I have permissions to merge.

@chanskw Note that topic names do not start with a slash.

ddebrunner commented 6 years ago

See: http://ibmstreams.github.io/streamsx.topology/doc/releases/latest/spldoc/html/tk$com.ibm.streamsx.topology/ns$com.ibm.streamsx.topology.topic$1.html

chanskw commented 6 years ago

Can you try merging now? I fixed up permission.

ddebrunner commented 6 years ago

@chanskw Are you planning to create a PR with the changes above?

chanskw commented 6 years ago

Yes.. I will fix this up in a bit.