nginx / nginx/njs

use gRPC client like ngx.fetch without subrequest

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

Nobody has claimed this yet.

njs
Dominant language
C
Stars
1.6k
Forks
239
Avg merge
2d 9h
Merged PRs (30d)
10

Description

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

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 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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.