use gRPC client like ngx.fetch without subrequest

Open
#671 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, grpc, javascript, nginx

Research direction

Start by reviewing the existing ngx.fetch implementation and the js_content and js_periodic entry points. Compare the linked grpc-client-nginx-module and grpc-node examples to define the client’s expected API and behavior. Done means an agreed design and an implemented gRPC client that can communicate externally without an nginx subrequest.

Written by the indexing model from the issue text.

Description

njs

It would be beneficial to create a gRPC client in NJS similar ngx.fetch in the context of using it js_content or js_periodic to communicate with the external world.
A reference to LUA experimental capabilities: https://github.com/api7/grpc-client-nginx-module/blob/main/README.md

Here is an example of a node code using a gRPC client:
https://github.com/grpc/grpc-node/blob/%40grpc/grpc-js%401.9.0/examples/helloworld/dynamic_codegen/greeter_client.js

Dominant language
C
Stars
1.6k
Forks
245
Avg merge
2d 5h
Merged PRs (30d)
6

Getting set up

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.

More from nginx/njs

All issues in nginx/njs

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.