JEFFRY A. DECOLA

MY FRONTEND AND BACKEND API EXAMPLES

GITHUB REPO

SEND DATA FROM A WEB SERVER TO A BACKEND SERVER

Using gRPC with Protobuf

Code written in php and go

send-data-from-web-server-to-backend-server-using-grpc-with-protobuf

TRY IT

Two numbers will be sent from a web server (client) to a backend server (server) that will calculate and return the sum

A webpage was added to enter the data and display the roundtrip result

I used my dynamic_items_container php container for the layout

OPERAND 1

+
OPERAND 2

=
SUM
ADD
RESET

PROTOBUF MESSAGE

Compiled to the go and php language respectively

PROTOBUF MESSAGE (ADD LINK!)

        
        syntax = "proto3";

        package main;

        option go_package = "./protobuf-message";

        message Data {
            int32 operand1 = 1;
            int32 operand2 = 2;
        }
        
        

PHP (CLIENT SIDE) (ADD LINK!)

        
        TBD
        
        

GO (SERVER SIDE) (ADD LINK!)

    
        TBD