Skip to content

Example RPC client-server application written in OCaml

Notifications You must be signed in to change notification settings

korbiniak/hello-world-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello World RPC

This is a short and comprehensive example of Jane Street's Ocaml Async_rpc library usage, together with Babel, which adds nice support for handling different versions of the RPCs and negotiation between client and the server.

I've learned this stuff during my Jane Streets internship this year. I'll probably use this repository as a handy example for my future OCaml code.

Usage

To run the server, run from the root directory:

$ dune exec -- ./server/bin/server.exe -log-level debug
[INFO] ("Spinning up server"(where_to_listen((socket_type((family PF_INET)(socket_type SOCK_STREAM)))(address 0.0.0.0:8080)(listening_on <opaque>))))

To make a call, run the client:

$ dune exec -- ./client/bin/client.exe hello-world "Ciao" "Franek"
Ciao, Franek!

About

Example RPC client-server application written in OCaml

Resources

Stars

Watchers

Forks

Languages