https://github.com/absaoss/spline-producer-proxy
https://github.com/absaoss/spline-producer-proxy
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/absaoss/spline-producer-proxy
- Owner: AbsaOSS
- License: apache-2.0
- Created: 2023-09-26T15:26:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-26T23:56:19.000Z (over 2 years ago)
- Last Synced: 2024-12-29T23:26:03.192Z (about 1 year ago)
- Language: TypeScript
- Size: 58.6 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Spline Producer Proxy
See: https://github.com/AbsaOSS/spline
This proxy server acts as a buffer between the _Spline Agents_ and the _Spline Server_. The main use-case is to decouple agents from the server temporarily for the time when the server is unavailable (e.g. for maintainence).
The proxy server exposes the same Spline Producer REST API as the _Spline Server_. All the received data is stored on the filesystem in a text format, to be later sent to the original _Spline Server_ when it is available.
## Building
```shell
npm ci
npm build:prod
docker build . -t
```
## Usage
```shell
docker run -e OUT_FILE= -p 8080:3000 AbsaOSS/spline-producer-proxy
# to re-send collected requests to the intended target server
./send-spline-messages.sh $path_to_dump_file $spline_producer_url
```
---
Copyright 2023 ABSA Group Limited
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.