nats-io / nats-architecture-and-design

Architecture and Design Docs
Apache License 2.0
206 stars 22 forks source link

Add Deprecation notice to `encoded connections` #291

Open Jarema opened 4 months ago

Jarema commented 4 months ago

Overview

As encoded connections are not properly working in many cases, and we always steer users away from them, we should mark them as deprecated in client API and docs.

Clients and Tools

Other Tasks

Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.

aricart commented 4 months ago

JavaScript doesn't implement encoded connections.

Jarema commented 4 months ago

Rust client also does not implement encoded connectionts.

scottf commented 4 months ago

Java does not implement encoded connections. .NET V1 does.

Tochemey commented 2 months ago

Ok please what is the best option for those of us who have been using it. Is there any migration doc?

Jarema commented 2 months ago

@Tochemey We are working on typed pub/sub/kv semantics in clients right now. Until then, manual serialize/deserialize of the payload is the way to go.

artooro commented 2 months ago

@Jarema do you have a link to the issue for the typed pub/sub/kv semantics? I've been using encoded connections for awhile and was surprised to see the deprecated notice after updating the Go package. Curious what these new typed semantics looks like and whether I should wait to get off of encoded conn until typed semantics is ready.