/backfila

Service that manages backfill state, calling into other services to do batched work

Primary LanguageKotlinApache License 2.0Apache-2.0

Backfila

Backfila is a service that manages backfill state, calling into other services to do batched work.

Building

Build backfila:

$ ./gradlew clean shadowJar

Run the Service

From the command line

$ java -jar service/build/libs/service.jar

From IntelliJ

Right-click on BackfilaService.kt and select Run

From Docker

Building

Build a Docker image of backfila:

$ docker build -t backfila-0.0.1 service

Running locally

Visit Docker for Mac to install Docker on a Mac for testing.

Run backfila in Docker locally:

$ docker run -p 8080:8080 backfila-0.0.1

Visit the UI at http://localhost:8080/

Client

The backfila client must be installed in your services to expose their backfill code. It also provides the batching mechanism and templates for common types of backfills.

Connectors

Connectors can be installed to provide a way to connect to your services. The included default connectors are HTTPS and Envoy. Add custom connectors using Guice map binding.

Gradle

implementation("app.cash.backfila:backfila-client:0.1.0")
implementation("app.cash.backfila:backfila-service-lib:0.1.0")

License

Copyright 2019 Square, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
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.