Backfila is a service that manages backfill state, calling into other services to do batched work.
Note: some instructions here are out of date
Build backfila:
$ ./gradlew clean shadowJar
$ java -jar service/build/libs/service.jar
Right-click on BackfilaService.kt
and select Run
Build a Docker image of backfila:
$ docker build -t backfila-0.0.1 service
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/
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 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.
implementation("app.cash.backfila:backfila-client:0.1.0")
implementation("app.cash.backfila:backfila-service-lib:0.1.0")
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.