Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Acquire Protobuf libraries for the target language of choice.
  2. Download the latest release of Geode and start a Geode server with the following gfsh commands:

    Code Block
    languagebash
    titlestart serverStart Server
    start server --name=server --server-port=40404 --bind-address=localhost
    create region --name=SampleData --type=REPLICATE
  3. Locate Protobuf message definition artifact from the downloaded Geode release in directory  ---> add directory here.. Directory $GEODE_HOME/tools/ClientProtocol/geode-protobuf-definitions-{versionNumber}.zip
  4. Unzip protobuf protocol message definitions. Using the relevant target language Using the Protobuf library, generate the language bindings from the message definitions downloaded in the previous step..

  5. Create your application that connects In the target language, connect a TCP socket to the server running on the local host and localhost, on port 40404.
  6. Write byte 110 to the socket.Write the
  7. Build a handshake request message and write it in a delimited fashion to the socket.
  8. Read the handshake response message in a delimited fashion from the socket and check the response for success.
  9. Write the Build a put request message to put the value bar for the key foo and write it in a delimited fashion to the socket.
  10. Read the put response message in a delimited fashion from the socket.

...

Code Block
languagebash
titleVerify Put
get --region=SampleData --key=foo