Code Monkey home page Code Monkey logo

go-events's Introduction

Status

It "compiles", untested

Getting Started

Prereqs

We need to make sure we have the following installed:

go 1.22
docker

go can be installed and managed with GVM https://github.com/moovweb/gvm

Using Homebrew:

brew install --cask docker

Running the tests

First copy .env.local to .env so that it may be used with docker compose and make commands

Next make sure to spin up the local env using:

make compose-up

Once running, we can execute the tests using:

make test

The consumer and producer pipeline is tested using Redis as the queue and data backend.

Performance

Threads: 10

Local

== RUN   TestPipelinePerformance
-----
duration: 9.521344489s
sent: 10000000
 => 1050271.840448 events/second
-----
--- PASS: TestPipelinePerformance (9.52s)

Redis

== RUN   TestPipelinePerformance
-----
duration: 47.794250481s
sent: 1000000
 => 20923.018772 events/second
-----
--- PASS: TestPipelinePerformance (47.79s)

Commands

Spinning it up

make compose-up

Spinning it down

make compose-down

Running the Tests

make test

TODO

  • documentation
  • test coverage
  • implement cassandra as the raw stream data store for the tape w/received_at
  • implmement postgres as the persistant cached data store against redis
  • implemment data expirations/cleaners within redis
  • swaggo annotations
  • technical diagram

go-events's People

Contributors

stat avatar

Watchers

Mickey Reiss avatar  avatar Julian Threatt avatar Sam Wyatt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.