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

github.com/hakanols/udp_echo_server

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/hakanols/udp_echo_server

  • v0.0.0-20201217115522-03b95ea3e8cc
  • Source
  • Go
  • Socket score

Version published
Created
Source

UDP Echo Go server

Needed a online UDP echo server for some experimentation with Nordic nRF9160 and LTE-m and NB-IoT. The echo server is of course generic. This repo also contain a test client, deployment instructions and some experimentation with Distroless.

Docker Distroless

I am a strong believe in keeping complexity down. I believe that Distroless and Multistage build succeed in that.

  • Platform independent build and run environment (Linux, Windows, Mac & cloud)
  • Immutable environment
  • No unnecessary "stuff" in run environment
  • Relative uncomplicated configuretion (8 line Dockerfile for both build & run)
  • Only Docker as dependency

One valid critic is that perhaps one type of complexity is just changed for another. Some times that is the case. E.g. How to debug? Mostly solvable but with added complexity. There are no silver bullets but for my case I would argue that it is a perfect match.

See distroless-go-hello for an minimal example.

Dependencies for examples below

Local echo server without Docker

Terminal 1:

cd echo_server
go run main.go

Terminal 2:

cd test_client
go run main.go 0.0.0.0

Local echo server with Docker

Terminal 1:

cd echo_server
docker build --rm -t echo .
docker run --rm -p 1234:1234/udp -t echo

Terminal 2:

cd test_client
go run main.go

Echo server on Google Could

Start server on Google cloud

Terminal:

cd test_client
go run main.go [SERVER_IP]

FAQs

Package last updated on 17 Dec 2020

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