danbev / learning-nodejs

Project for learning Node.js internals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How node implement MessageChannel Api

nextfool opened this issue · comments

Hi @danbev,

Can you explain a little bit on how node implement the "MessageChannel" api?

I googled on this topic and seems few people talked about the api implementation, only its usage.

I checked the "node_messaging.h" as well as "node_messaging.cc", and knew what a message channel/port looks like, but I can't figure out how node uses those data structure to implement a real message channel, by that I mean being ware of /keeping tracking of the communications between contexts(a parent worker and a child worker, many siblings workers etc.)

Hope you don't mind I ask a question here.

Thank you.

Hi @nextfool

I think it is great that you are digging into Node.js and I would have liked to help, but my time is limited and I'm currently focusing on other topics. So I'm afraid I won't be able to answer questions.

Hi @danbev ,
Thank you for the reply. Maybe in the future you can focus on this topic.
Look forward to your other articles.