question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi,

First of all thanks for offering to the community this library as well as all the NATS ecosystem.

I saw in the Projects section that header support is included in the v1.0.0 milestone.

We’re quite in need of this feature, and have a working solution where we enforce some schema on message data, something like:

{
  "__data__": <actual_data>,
  "__context__": <trace_context>
}

The problem with this approach, is that we MUST serialize all our messages to JSON format (we could use another format, but the constraint of enforcing schema on the payload is the same).

BTW we also use Typescript, and had to implement this feature too using ts-nats

We’re in the process of rewriting our internal library, and are wondering if we should port this “solution” to our new version, or if we should wait for this feature to be implemented in nats.py.

If you could give us a time estimate of the implementation, it would help us in taking a decision.

More over, I’m not familiar with NATS code base, and don’t really know how to tackle this issue, but if there are things that seem doable for first contributors, don’t hesitate to point us in the right direction.

Thanks in advance 🙇

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
gcolburncommented, Jun 1, 2021

Hi @wallyqs. Any updates on an estimated timeline for header support in nats.py? Thanks!

1reaction
reegeekcommented, Sep 23, 2021

Hi @wallyqs thank you for all work already done. I use nats to communicate between a server write in .net and a client in python. I use header in C#, I would like to use it also in python. Do you have any visibility as to when headers will be taken into account in python ? Regards

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP headers - MDN Web Docs - Mozilla
Lists the set of HTTP request methods supported by a resource. Server. Contains information about the software used by the origin server to ......
Read more >
R602.7.5 Supports for Headers - UpCodes
Headers shall be supported on each end with one or more jack studs or with approved framing anchors in accordance with Table R602.7(1)...
Read more >
"header" | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >
Sliding Barn Door Support Header | Rustica
Add structural support for your barn door with our Sliding Barn Door Support Header. This support header is fully customizable with different colors...
Read more >
Insert a header or footer - Microsoft Support
Add or change text for the header or footer. For more info on things you can do with headers, see Edit your existing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found