GithubHelp home page GithubHelp logo

bard-rr / agent-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 73 KB

This is the api for the agent from the bardrr npm package.

JavaScript 98.98% Dockerfile 1.02%
express javascript nodejs clickhouse postgresql rabbitmq

agent-api's Introduction


Version Downloads/week License

Agent API

Description

This is the api for the Agent from the bardrr npm package. The agent API has four jobs in our infrastructure.

  • First, it validates the bardrr Agent using json web tokens.
  • Second, it collects the metadata for each session by using the session ID given by the agent to keep track of the time, length, app name, and errors of each session.
  • Third, the agent API parses conversion events from regular events and inserts them into the conversion table in the clickhouse database.
  • Fourth, it collects all the events from the agent and inserts them into the events table in the clickhouse database.

Required Software

Rabbitmq: Download Here Will be run on port 5672.

Clickhouse: Download Here Will run on port 8123. The schema can be found here Schema

Postgres: Download Here Will run on port 5432. The schema can be found here Schema

Session_Ender: Download Here A Cron job that is responsible for completing sessions and moving them into the clickhouse database.

Setup

Clone the open source reposatory from here. Run the application from the app directory using:

npm run start

The agent api will run on port 3001.

Website

You can read more about our project here.

agent-api's People

Contributors

neenol avatar marcinkostecki avatar aahull08 avatar epofallon avatar

Watchers

 avatar

agent-api's Issues

Enhance metadata handling

Right now, each batch of events that comes into the /record endpoint makes a query to postgres and a query to clickhouse to determine if the events belong to a new session, an active session, or an ended one. Maybe we could enhance this via the use of a key value store like redis so that we don't need to hit the dbs as often?

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.