Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

How does an append request works? #1

Closed
stefanondisponibile opened this issue Dec 28, 2020 · 5 comments
Closed

How does an append request works? #1

stefanondisponibile opened this issue Dec 28, 2020 · 5 comments

Comments

@stefanondisponibile
Copy link

It isn't prefectly clear to me, I've tried looking also here to understand. Are options sent as the first element of the stream?

message AppendReq {
	oneof content {
		Options options = 1;
		ProposedMessage proposed_message = 2;
	}

	message Options {
		event_store.client.shared.StreamIdentifier stream_identifier = 1;
		oneof expected_stream_revision {
			uint64 revision = 2;
			event_store.client.shared.Empty no_stream = 3;
			event_store.client.shared.Empty any = 4;
			event_store.client.shared.Empty stream_exists = 5;
		}
	}
	message ProposedMessage {
		event_store.client.shared.UUID id = 1;
		map<string, string> metadata = 2;
		bytes custom_metadata = 3;
		bytes data = 4;
	}
}

However, are the plans to wrap the grpc calls around some kind of client for this library? I'm asking 'cause I'd be willing to help :)

@hjwp
Copy link
Owner

hjwp commented Dec 29, 2020

i really didn't get very far i'm afraid! but if you join the DDD-CQRS-ES slack, you might be able to get some help from one of the eventstoredb people, matt. I'll introduce you... https://j.mp/ddd-es-cqrs

@stefanondisponibile
Copy link
Author

That sounds cool! Unfortunately that link doesn't let me join the channel though:

Screenshot-20201229203006-1370x383

Do I need a different kind of invitation?

@hjwp
Copy link
Owner

hjwp commented Dec 31, 2020

@hjwp
Copy link
Owner

hjwp commented Dec 31, 2020

also, apparently the docs just got updated https://developers.eventstore.com/clients/grpc/getting-started/

@stefanondisponibile
Copy link
Author

eheh thank you @hjwp , but that doesn't work either. I guess I'll try to contact them directly for the issue about the link (I've tried also from their official repo). I saw the docs, but they're exposing just the C# and NodeJs clients and by the protos I didn't get an actual idea of how a stream append may work (basically when to send oneof options or proposed_message in the append request. Happy New Year by the way! ✨

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants