modular / modular/modular

[Feature Request] Support for grpc

Open
#3,181 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement mojo mojo-repo postponed
Dominant language
Mojo
Stars
29.8k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

Review Mojo's priorities
What is your request?

I want to use grpc in Mojo.

What is your motivation for this change?

In distributed computing, workers need to communicate with each other, so grpc is a key part of distributed computing. Since Mojo aim to be the world's unified AI infrastructure, grpc seems to be inevitable eventually.

And I check the grpc homepage, mojo is not supported yet officially. Are there any plan about this subject, or are there any other preliminary work need to be done first ? Some idea could be considered:

  1. As @Brian-M-J pointed out in discussion https://github.com/modularml/mojo/discussions/3132, one way to support grpc is to make a Mojo wrapper for the core C++ library. But it may require some support for c++ interop.
  2. Generate Mojo code for grpc, and then use it in Mojo as other language.

Both ways seems to be a lot of work. I think grpc is a huge subject, these are my some simple thought about grpc. Maybe need some more discussion about this subject.

Any other details?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked gRPC C++ core library and the discussion at modularml/mojo#3132, then determine whether C++ interop or generated Mojo code is the intended path. Done would require a decided scope and implementation plan for using gRPC in Mojo; the issue does not name files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend-api-design, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.