5

What is a DUMP SERVER and what are its advantages over a static server

 2 years ago
source link: https://dev.to/xnbox/what-is-a-dump-server-and-what-are-its-advantages-over-a-static-server-4p8l
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

What is a DUMP SERVER and what are its advantages over a static server

Sep 6

・1 min read

A dump server is a server that responds to client requests with data that it retrieves from a standard HTTP dump.

Just like a static server, the dump server does not execute the code, but only gives the ready data to the client.
The static server responds with the contents of the files, and the dump server responds with dumps.
The dump includes the response body, status code, and headers.
The dump server allows you to serve any kind of request, not just GET method, like a static server.
With a dump server, you can simulate any API without writing code.

If you need to start working on the frontend, and the backend is not ready yet, then you need a dump server.

Meet the DeepfakeHTTP dump server:

GitHub logo xnbox / DeepfakeHTTP

🟪 DeepfakeHTTP is a web server that uses HTTP dumps as a source for responses.

DeepfakeHTTP – Your 100% static dynamic backend

DeepfakeHTTP is a web server that uses HTTP dumps as a source for responses.

What are people using it for?

  • Creating the product POC or demo before even starting out with the backend
  • REST, GraphQL, and other APIs prototyping and testing
  • Hiding critical enterprise infrastructure behind a simple static facade
  • Hacking and fine-tuning HTTP communications on both server and client sides

Features

  • No dependencies
  • No installation
  • No configuration files
  • Single-file executable

Command Line Interface (CLI)

java -jar df.jar [options] [dump1.txt] [dump2.txt] ...

Options:
        --help           print help message
        --info           print dump files statistics as JSON
        --requests       print dump requests as JSON
        --port           TCP port number, default: 8080
        --collect <file> append live request/response dumps to file
        --no-log         disable request/response console logging
        --no-etag        disable ETag optimization
        --no-watch       disable watch dump files for changes

Prerequisites

  • Java 15 or above

Get started

  1. Download the latest release of df.jar

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK