GithubHelp home page GithubHelp logo

jaberwoky / grpc-perl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joyrex2001/grpc-perl

0.0 1.0 0.0 208 KB

Perl 5 implementation of gRPC using the official gRPC shared library.

License: Apache License 2.0

XS 25.55% Perl 62.42% C 9.93% C++ 1.68% Shell 0.22% Dockerfile 0.20%

grpc-perl's Introduction

Grpc::XS / grpc-perl

Overview

This repository contains source code for a perl 5 implementation of gRPC transport layer. It binds to the official shared C library. The implementation is heavily based on the php implementation of the gRPC library.

Usage

This implementation only implements the grpc client, not the server. This library also only implements the transport layer and is not intended to be used directly. Instead it should be used in combination with a protocol buffer implementation that support service rpc definitions. Currently the excellent Google::ProtocolBuffers::Dynamic module is the best option for this.

fork() compatibility

It's possible to fork processes which use Grpc::XS, but only if this library is used exclusively inside child processes. This requires an explicit (de)initialization, otherwise things will hang forever on very first attemp to use anything grpc-related. Here is how it can be done:

Gprc::XS::destroy();
if (fork() == 0) { # in child
	Grpc::XS::init();
	# Grpc::XS can be used in this child without any problems
}

See also

grpc-perl's People

Contributors

joyrex2001 avatar mbarbon avatar binarin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.