PitchHut logo
A high-performance mock server for HTTP/HTTPS testing.
Pitch

Rift is designed for those seeking a faster, Mountebank-compatible mock server. With capabilities that boost performance by 2-250x over traditional tools, it seamlessly integrates with existing Mountebank configurations, providing identical behaviors and responses, all while maintaining high throughput for better testing experiences.

Description

Rift is a high-performance mock server designed for HTTP/HTTPS, compatible with Mountebank and built using Rust. It enhances testing by delivering 2-250x better performance compared to traditional solutions, allowing users to utilize existing Mountebank configurations while enjoying significantly faster test execution.

Key Features

  • Mountebank Compatibility: Use the same REST API, configuration files, and behaviors as Mountebank without modifications. This critical compatibility allows seamless integration and migration.

  • Exceptional Performance: Rift boasts remarkable performance improvements:

    FeatureMountebankRiftSpeedup
    Simple stubs1,900 RPS39,000 RPS20x faster
    JSONPath predicates107 RPS26,500 RPS247x faster
    XPath predicates169 RPS28,700 RPS170x faster
    Complex predicates900 RPS29,300 RPS32x faster
  • Comprehensive Feature Set: Supports various functionalities, including imposters for HTTP/HTTPS mock servers, a wide variety of predicates, responses, behaviors, and proxy modes for recording and replaying requests.

Quick Start

Rift can be run via Docker, allowing for straightforward setup and configuration. Users can create their first imposter with a simple command:

curl -X POST http://localhost:2525/imposters \  
  -H "Content-Type: application/json" \  
  -d '{"port": 4545, "protocol": "http", "stubs": [{"predicates": [{"equals": {"path": "/hello"}}], "responses": [{"is": {"statusCode": 200, "body": "Hello, World!"}}]}]}'

It is also possible to load existing Mountebank configuration files seamlessly.

Extensive Documentation

Rift is equipped with comprehensive documentation that covers installation options, configuration guidance, and feature descriptions to facilitate user onboarding and effective use of the tool.

Explore topics such as:

Rift also includes tools for managing mock servers through a Terminal UI, verifying stubs and linting configuration files, further enhancing the user experience.

In summary, Rift offers a robust and efficient solution for developers seeking a high-performance mock server that integrates seamlessly with existing systems while providing exceptional speed and flexibility.

0 comments

No comments yet.

Sign in to be the first to comment.