New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/ajvpot/one-million-checkboxes-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ajvpot/one-million-checkboxes-go

  • v0.0.0-20240727014359-e405872d8431
  • Source
  • Go
  • Socket score

Version published
Created
Source

excellent blog https://eieio.games/essays/scaling-one-million-checkboxes/

  • how would i do it
  • go process - 1 million atomic.Bools
    • manipulate it with atomic. so you dont need mutexes.
    • one process holds it all in memory easily - no scaling issue there
  • app is read heavy
    • have "frontend" servers
    • they connect to the "master" server and relay updates/writes.
    • keeps the master servers bandwidth from becoming saturated.
  • bandwidth costs are an issue
    • use a binary protocol
    • use the MSB of the index of the checkbox to indicate if its checked or not

FAQs

Package last updated on 27 Jul 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