Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

microservices-demo/micro-sock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED: Micro-sock - dummy microservice

A tiny golang application simulating a microservice. It

  • listens for inbound connections
  • connects to other named microservices specified on the command line
  • sends messages containing a sequence number
  • logs sent and received messages
  • attempts to reconnect on failure

Build

Using Go natively

make micro-sock

Usage

Usage of ./micro-sock:
  -a string
        listening address
  -i duration
        message sending interval (default 2s)
  -l    listen
  -r duration
        connection retry interval (default 1s)
  -t duration
        connect/send/recv timeout (default 5s)

Example

The following example will start micro-sock in listen mode, and attempt to connect to a different instance of micro-sock, on host "test-host".

./micro-sock -l test-host

Releases

No releases published

Packages

No packages published

Languages

  • Go 89.4%
  • Makefile 8.0%
  • Dockerfile 2.6%