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

github.com/deepakkumarbhagat/uuid-gen

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/deepakkumarbhagat/uuid-gen

  • v0.0.0-20240802001729-e66c50de9815
  • Source
  • Go
  • Socket score

Version published
Created
Source

uuidgen Golang/Go based uuid generator for a distributed system with requirements as below

  1. Unsigned 64 bits integer (non alphanumeric)
  2. uuid values increases with the time uuid at timestamp t1 < uuid t2,given timestaps t1 < t2
  3. Generation capactiy : 1000 uuids/miliseconds

Usage

Install the prorgram as below, go install github.com/deepakkumarbhagat/uuidgen/cmd/uuidgen@latest

The program uuidgen thus installed, is a rest server supporting only a GET method at the endpoint "/apis/v1/uuids" and port 8080. The server acheives generating capacity of 1000 uuids/milisecs by implementing fan-out/worker pattern with go routines.

image

Testing

Tool to send rest request to the server , it's is advisable to try simulating burst of generation request to the server and verify if the server absorbs the shock correctly.

image

CLI CLI support TBD

FAQs

Package last updated on 02 Aug 2024

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