Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Buf schema registry readme #34

Merged
merged 6 commits into from
Oct 21, 2022
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions protobuf/buf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Flagd build spec

## This repository is managed by OpenFeature


james-milligan marked this conversation as resolved.
Show resolved Hide resolved
This module contains the core types that developers can use for interacting with [flagd](https://github.com/open-feature/flagd).

Internally flagd uses the connect protocol, meaning it is compatible with grpc interfaces. If your desired language has a supported plugin for generating connect stubs then it is reccomended to use these over grpc.

The package contains a single `Service`, describing the 5 core `rpcs` for feature flag evaluation (`ResolveBoolean`, `ResolveString`, `ResolveFloat`, `ResolveInt` and `ResolveObject`) each with their type specific requests and responses (`ResolveXXXRequest` and `ResolveXXXResponse`).
The final `rpc` on the `Service` is a streamed response called `EventStream`, this is used to pass internal events to the client, such as `configuration_change` or `provider_ready`.

## Build options

The core definitions are in the `schema.v1` package, and contains package name options for the following languages, as a result these can be excluded from build instructions:

- Go: schema/service/v1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while a table would be more suitable here, its formatting is lost in the schema registry

Copy link
Member

@toddbaert toddbaert Oct 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about taking this chance to update the go package name?

I think I'd like to see something more like the other examples. This is a nitpick though, it won't block the merge from my end.

cc @skyerus

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have another issue open for this here. I tihnk we should hold off on making this change until after kubecon, as it will change the import paths for flagd and the go provider.

- Java: dev.openfeature.flagd.grpc
- C#: OpenFeature.Flagd.Grpc