Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/stefanhans/programming-reactive-systems-in-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/stefanhans/programming-reactive-systems-in-go

  • v0.0.0-20190918075042-f8f499d24ec7
  • Source
  • Go
  • Socket score

Version published
Created
Source

A System Prototype For Isomorphic Client Applications

This software project is related to the master thesis "Programming Reactive Systems in Go"

MIT License Go Report Card

Purpose

Developing distributed systems is a complex project. Without a central instance which is always available we face some general problems:

  • who to contact in the first place
  • which peers are currently online
  • how does the system scale

To experiment with different libraries and to gain experience about the subject, it is useful to have a command line running in an online connected peer. We can now, step-by-step, investigate the libraries and experiment freely and being open to failure. We gain experience in how different components interact with each other in an online network of peers. An example application gives us a realistic use case layer.

Here the major features we need:

  • command line interface within the running peer
  • bootstrap data service
  • group membership protocol implementation

The bootstrap service has a separated API. The implementation of the group membership protocol and the CLI tool are libraries.

We try to have seamless transitions from getting familiar with libraries, developing, testing, and production ready.

Additional to some internal CLI features, we do provide script execution and multi-client testing.

Bootstrap Data Service

The service consists of

  • an API bootstrap-data-api
  • a backend for production bootstrap-data-cloudfunctions which is already deployed as Cloud Functions on GCP
  • a backend for development bootstrap-data-server which can be started locally

HashiCorps ’memberlist’ Library

We use the 'memberlist' library to inform all members about the connection information of the chat layer. And we get a notification from it about events like joining and leaving peers.

Chat Application

The chat application is simple - join, leave, and send messages to all others.

CLI Features

During the development of isomorphic client applications, we need a simple way to organize investigation, implementation, and manually testing. Therefore, we can quickly provide any function to the internal command line. This is our essential CLI feature.

Following the KISS and YAGNI principles, we have now:

  • advanced logging
  • execution of internal scripts and shell scripts
  • saving and loading of internal configurations

All can easily be enhanced.

Multi-Client Testing

For the tests with interacting clients, we have test-server doing the coordination. The clients have an integrated API and an own set of internal commands. The tests itself are scripts provided to the test server.

FAQs

Package last updated on 18 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc