/hermes-examples

Hermes Python, Node.js, C++, Go examples

Primary LanguageJava

EventHubSamples

These are reference implementations, simple interactions with EventHub REST API. There are examples in

  • C++
  • Go
  • Java (SpringBoot)
  • Javascript (Serverside Node.js, and Client/Browser)
  • Python

The Golang, and C++ implementations are pre-compiled executables on MS Windows X64, however, they can be run, using MS DOS, Git Bash, or (recommended) MS PowerShell, there are asscoiated config.json files that can be edited.

These are straightforward reference implementations, that very simply, for explanation, the code performs :

  1. Get a token from the Kong API Token service, with credentials (supplied).
  2. Preparing a JSON payload, and posting the event to a EventHub service.

Getting started

It is assumed that the Developer will have the appropriate development environment, and tools. For these examples, the following were used:

  1. IDE MS Visual Studio Code : https://code.visualstudio.com/
  2. Python : https://www.python.org/downloads/
  3. Node.js : https://nodejs.org/en/download/
  4. GoLang : https://go.dev/dl/
  5. IntelliJ : https://www.jetbrains.com/idea/download
  6. Java (Open JDK 11) : https://openjdk.org/install/
  7. C++ CMake : https://cmake.org/download/
  8. C++ Compilers : CLang for MacOSX https://clang.llvm.org/get_started.html
  9. C++ Community 2022 for Windows : https://visualstudio.microsoft.com/vs/features/cplusplus/