Giter Site home page Giter Site logo

cdscih / stairable Goto Github PK

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

A tool to test whether or not an endpoint is able to work with the load it's supposed to handle.

License: MIT License

TypeScript 80.87% Dockerfile 19.13%
endpoint-testing load loadtesting scalability

stairable's People

Contributors

cdscih avatar

Watchers

 avatar

stairable's Issues

add: live results

Currently the tests are being executed entirely before showing the result. It would be much better to have a constant live streaming of the tests that are being done.

add: dind to run sample servers inside dev container

Last time I tried I had issues with docker not being able to connect the already running host.

I tried reassigning the DOCKER_HOST variable to multiple things but it didn't work.

It's quite ugly to be forced to launch the sample servers that run in python from the outside. This should be supported asap imo.

Useful links:
https://docs.docker.com/engine/install/debian/#install-using-the-repository
https://docs.docker.com/engine/install/linux-postinstall/
https://www.caktusgroup.com/blog/2020/02/25/docker-image/
https://stackoverflow.com/questions/25234792/what-does-the-docker-host-variable-do

add: web server that exposes the basic UI

This tool is supposed to be used primarily through a graphical interface exposed by a web server.

Ideally it would need to have a way to:

  • setup all the required fields
  • setup the endpoint you want to test
  • a way to visualise the status of the test (live)
  • an input space where to insert a javascript snippet that allows the user to create a function which creates the input to the http/s call

Note: This is probably going to be divided into subtasks later on.

add: CLI support

Ideally this tool would also have a CLI interface.

It's not supposed to be too hard to do, the Options object would simply need to be created through CLI params, but it's not of high priority since it's supposed to be a UI tool first.

Notes:

add: support for body creation function

This library wants to help the end user to test if the endpoint can sustain the load also by the amount/size of the input.

The only way to meaningfully do that is by allowing the use to choose how the "createNs" function works.

This task is supposed to add this createNs function to the Options object and utilise it to test the endpoint.

add: support for consistent load tests

This issue is to implement a way to test a consistent amount of requests & connections over "X" amount of time.

An extension to the basic feature could be the option to test with randomly created bodies through a function.

add: more example endpoints

It'd be great to have an example folder, on the top level of the project, where to put inside a docker-compose which exposes 3 endpoints:

  • one hat retrieves data from a postgres
  • one that does the same but adds a Redis cache on top of it
  • one that retrieves data from a mongodb

I'm gonna to try to do one written in Golang as well.

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.