All Projects → Azure → azure-functions-language-worker-protobuf

Azure / azure-functions-language-worker-protobuf

Licence: MIT license
Protobuf definitions for the gRPC connections between the script host and the language workers

Projects that are alternatives of or similar to azure-functions-language-worker-protobuf

serverless-multicloud-example
An example Node Express app that can be deployed in any major cloud by the Serverless framework
Stars: ✭ 20 (-25.93%)
Mutual labels:  azure-functions
OSCI
Open Source Contributor Index
Stars: ✭ 107 (+296.3%)
Mutual labels:  azure-functions
powerbi-embed-v2
Power BI Embedded with Custom Controls PoC
Stars: ✭ 34 (+25.93%)
Mutual labels:  azure-functions
azure-functions-python-library
Azure Functions Python SDK
Stars: ✭ 95 (+251.85%)
Mutual labels:  azure-functions
AzureContainerInstancesManagement
Hosting game servers at scale using Azure Container Instances, using Azure Functions and Event Grid. Demo with OpenArena game server!
Stars: ✭ 41 (+51.85%)
Mutual labels:  azure-functions
clean-architecture-azure-cosmos-db
A starting point to build a web API to work with Azure Cosmos DB using .NET 5 and Azure Cosmos DB .NET SDK V3, based on Clean Architecture and repository design pattern. Partition key is also implemented through the repository pattern.
Stars: ✭ 277 (+925.93%)
Mutual labels:  azure-functions
Juka
🥣 Juka Programming Language - Fast Portable Programming Language. Run code anywhere without complicated installations and admin rights. Simple, yet powerful new programming language [Easy to code and run on any system] IOT devices supported!
Stars: ✭ 68 (+151.85%)
Mutual labels:  azure-functions
azure-functions-ts-essentials
Essential interfaces and tools for backend development on Azure Functions with TypeScript
Stars: ✭ 21 (-22.22%)
Mutual labels:  azure-functions
Fritz.HatCollection
A static website that displays a collection of Fritz's Hats
Stars: ✭ 21 (-22.22%)
Mutual labels:  azure-functions
multicloud
The serverless @multicloud library provides an easy way to write your serverless handlers 1 time and deploy them to multiple cloud providers include Azure & AWS.
Stars: ✭ 79 (+192.59%)
Mutual labels:  azure-functions
Imgbot
An Azure Function solution to crawl through all of your image files in GitHub and losslessly compress them. This will make the file size go down, but leave the dimensions and quality untouched. Once it's done, ImgBot will open a pull request for you to review and merge. [email protected]
Stars: ✭ 1,017 (+3666.67%)
Mutual labels:  azure-functions
Xamarin.InAppPurchasing
Sample project for secure in-app purchases with Xamarin for iOS and Google Play
Stars: ✭ 26 (-3.7%)
Mutual labels:  azure-functions
sshizzle
Serverless, Zero-Trust SSH for Microsoft Azure
Stars: ✭ 62 (+129.63%)
Mutual labels:  azure-functions
serverlessnotifications
Serverless notifications with Azure Cosmos DB + Azure Functions + Azure SignalR
Stars: ✭ 60 (+122.22%)
Mutual labels:  azure-functions
QueueBatch
WebJobs/Azure Functions trigger providing batches of Azure Storage Queues messages directly to your function
Stars: ✭ 40 (+48.15%)
Mutual labels:  azure-functions
CfpExchange
An online community website used to share interesting call for papers with speakers.
Stars: ✭ 24 (-11.11%)
Mutual labels:  azure-functions
azure-sql-db-change-stream-debezium
SQL Server Change Stream sample using Debezium
Stars: ✭ 74 (+174.07%)
Mutual labels:  azure-functions
azure-maven-archetypes
Maven Archetypes for Microsoft Azure Services
Stars: ✭ 19 (-29.63%)
Mutual labels:  azure-functions
functions-extension-101
Learn how to create your own Azure Functions extension in 5 steps
Stars: ✭ 35 (+29.63%)
Mutual labels:  azure-functions
shorty
URL shortener available as library, microservice (even containerized), aws lambda, and azure function
Stars: ✭ 31 (+14.81%)
Mutual labels:  azure-functions

Azure Functions Language Worker Protobuf

This repository contains the protobuf definition file which defines the gRPC service which is used between the Azure Functions Host and the Azure Functions language workers. This repo is shared across many repos in many languages (for each worker) by using git commands.

To use this repo in Azure Functions language workers, follow steps below to add this repo as a subtree (Adding This Repo). If this repo is already embedded in a language worker repo, follow the steps to update the consumed file (Pulling Updates).

Learn more about Azure Function's projects on the meta repo.

Adding This Repo

From within the Azure Functions language worker repo:

  1. Define remote branch for cleaner git commands
    • git remote add proto-file https://github.com/azure/azure-functions-language-worker-protobuf.git
    • git fetch proto-file
  2. Index contents of azure-functions-worker-protobuf to language worker repo
    • git read-tree --prefix=<path in language worker repo> -u proto-file/<version branch>
  3. Add new path in language worker repo to .gitignore file
    • In .gitignore, add path in language worker repo
  4. Finalize with commit
    • git commit -m "Added subtree from https://github.com/azure/azure-functions-language-worker-protobuf. Branch: <version branch>. Commit: <latest protobuf commit hash>"
    • git push

Pulling Updates

From within the Azure Functions language worker repo:

  1. Define remote branch for cleaner git commands
    • git remote add proto-file https://github.com/azure/azure-functions-language-worker-protobuf.git
    • git fetch proto-file
  2. Pull a specific release tag
    • git fetch proto-file refs/tags/<tag-name>
      • Example: git fetch proto-file refs/tags/v1.1.0-protofile
  3. Merge updates
    • Merge with an explicit path to subtree: git merge -X subtree=<path in language worker repo> --squash <tag-name> --allow-unrelated-histories --strategy-option theirs
      • Example: git merge -X subtree=src/WebJobs.Script.Grpc/azure-functions-language-worker-protobuf --squash v1.1.0-protofile --allow-unrelated-histories --strategy-option theirs
  4. Finalize with commit
    • git commit -m "Updated subtree from https://github.com/azure/azure-functions-language-worker-protobuf. Tag: <tag-name>. Commit: <commit hash>"
    • git push

Consuming FunctionRPC.proto

Note: Update versionNumber before running following commands

CSharp

set NUGET_PATH="%UserProfile%\.nuget\packages"
set GRPC_TOOLS_PATH=%NUGET_PATH%\grpc.tools\<versionNumber>\tools\windows_x86
set PROTO_PATH=.\azure-functions-language-worker-protobuf\src\proto
set PROTO=.\azure-functions-language-worker-protobuf\src\proto\FunctionRpc.proto
set PROTOBUF_TOOLS=%NUGET_PATH%\google.protobuf.tools\<versionNumber>\tools
set MSGDIR=.\Messages

if exist %MSGDIR% rmdir /s /q %MSGDIR%
mkdir %MSGDIR%

set OUTDIR=%MSGDIR%\DotNet
mkdir %OUTDIR%
%GRPC_TOOLS_PATH%\protoc.exe %PROTO% --csharp_out %OUTDIR% --grpc_out=%OUTDIR% --plugin=protoc-gen-grpc=%GRPC_TOOLS_PATH%\grpc_csharp_plugin.exe --proto_path=%PROTO_PATH% --proto_path=%PROTOBUF_TOOLS%

JavaScript

In package.json, add to the build script the following commands to build .js files and to build .ts files. Use and install npm package protobufjs.

Generate JavaScript files:

pbjs -t json-module -w commonjs -o azure-functions-language-worker-protobuf/src/rpc.js azure-functions-language-worker-protobuf/src/proto/FunctionRpc.proto

Generate TypeScript files:

pbjs -t static-module azure-functions-language-worker-protobuf/src/proto/FunctionRpc.proto -o azure-functions-language-worker-protobuf/src/rpc_static.js && pbts -o azure-functions-language-worker-protobuf/src/rpc.d.ts azure-functions-language-worker-protobuf/src/rpc_static.js

Java

Maven plugin : protobuf-maven-plugin In pom.xml add following under configuration for this plugin ${basedir}//azure-functions-language-worker-protobuf/src/proto

Python

python -m pip install -e .[dev] -U
python setup.py build

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].