All Projects → compose → Transporter

compose / Transporter

Licence: bsd-3-clause
Sync data between persistence engines, like ETL only not stodgy

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Transporter

Phalcon Vm
Vagrant configuration for PHP7, Phalcon 3.x and Zephir development.
Stars: ✭ 43 (-96.34%)
Mutual labels:  mongodb, postgresql, elasticsearch, rabbitmq
Spring Examples
SpringBoot Examples
Stars: ✭ 67 (-94.3%)
Mutual labels:  mongodb, postgresql, elasticsearch, rabbitmq
Transformalize
Configurable Extract, Transform, and Load
Stars: ✭ 125 (-89.36%)
Mutual labels:  etl, postgresql, elasticsearch
Usaspending Api
Server application to serve U.S. federal spending data via a RESTful API
Stars: ✭ 166 (-85.87%)
Mutual labels:  etl, postgresql, elasticsearch
Dev Setup
macOS development environment setup: Easy-to-understand instructions with automated setup scripts for developer tools like Vim, Sublime Text, Bash, iTerm, Python data analysis, Spark, Hadoop MapReduce, AWS, Heroku, JavaScript web development, Android development, common data stores, and dev-based OS X defaults.
Stars: ✭ 5,590 (+375.74%)
Mutual labels:  mongodb, postgresql, elasticsearch
Pifpaf
Python fixtures and daemon managing tools for functional testing
Stars: ✭ 161 (-86.3%)
Mutual labels:  mongodb, postgresql, elasticsearch
Firecamp
Serverless Platform for the stateful services
Stars: ✭ 194 (-83.49%)
Mutual labels:  mongodb, postgresql, elasticsearch
Invenio
Invenio digital library framework
Stars: ✭ 469 (-60.09%)
Mutual labels:  postgresql, elasticsearch, rabbitmq
Adminer Custom
Customizations for Adminer, the best database management tool written in PHP.
Stars: ✭ 99 (-91.57%)
Mutual labels:  mongodb, postgresql, elasticsearch
Stream Reactor
Streaming reference architecture for ETL with Kafka and Kafka-Connect. You can find more on http://lenses.io on how we provide a unified solution to manage your connectors, most advanced SQL engine for Kafka and Kafka Streams, cluster monitoring and alerting, and more.
Stars: ✭ 753 (-35.91%)
Mutual labels:  mongodb, elasticsearch, rethinkdb
Monstache
a go daemon that syncs MongoDB to Elasticsearch in realtime
Stars: ✭ 736 (-37.36%)
Mutual labels:  etl, mongodb, elasticsearch
Mall Swarm
mall-swarm是一套微服务商城系统,采用了 Spring Cloud Hoxton & Alibaba、Spring Boot 2.3、Oauth2、MyBatis、Docker、Elasticsearch、Kubernetes等核心技术,同时提供了基于Vue的管理后台方便快速搭建系统。mall-swarm在电商业务的基础集成了注册中心、配置中心、监控中心、网关等系统功能。文档齐全,附带全套Spring Cloud教程。
Stars: ✭ 7,874 (+570.13%)
Mutual labels:  mongodb, elasticsearch, rabbitmq
Mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Stars: ✭ 54,797 (+4563.57%)
Mutual labels:  mongodb, elasticsearch, rabbitmq
Spring Boot 2.x Examples
Spring Boot 2.x code examples
Stars: ✭ 104 (-91.15%)
Mutual labels:  mongodb, postgresql, elasticsearch
Springboot Templates
springboot和dubbo、netty的集成,redis mongodb的nosql模板, kafka rocketmq rabbit的MQ模板, solr solrcloud elasticsearch查询引擎
Stars: ✭ 100 (-91.49%)
Mutual labels:  mongodb, elasticsearch, rabbitmq
Mongo Es
A MongoDB to Elasticsearch connector
Stars: ✭ 185 (-84.26%)
Mutual labels:  etl, mongodb, elasticsearch
Newsblur
NewsBlur is a personal news reader that brings people together to talk about the world. A new sound of an old instrument.
Stars: ✭ 5,862 (+398.89%)
Mutual labels:  mongodb, postgresql, elasticsearch
Goodskill
🐂基于springcloud +dubbo构建的模拟秒杀项目,模块化设计,集成了分库分表、elasticsearch🔍、gateway、mybatis-plus、spring-session等常用开源组件
Stars: ✭ 786 (-33.11%)
Mutual labels:  mongodb, elasticsearch, rabbitmq
Mall Learning
mall学习教程,架构、业务、技术要点全方位解析。mall项目(40k+star)是一套电商系统,使用现阶段主流技术实现。涵盖了SpringBoot 2.3.0、MyBatis 3.4.6、Elasticsearch 7.6.2、RabbitMQ 3.7.15、Redis 5.0、MongoDB 4.2.5、Mysql5.7等技术,采用Docker容器化部署。
Stars: ✭ 10,236 (+771.15%)
Mutual labels:  mongodb, elasticsearch, rabbitmq
Treefrog Framework
TreeFrog Framework : High-speed C++ MVC Framework for Web Application
Stars: ✭ 885 (-24.68%)
Mutual labels:  mongodb, postgresql

Build Status Build Status Go Report Card codecov Docker Repository on Quay Gitter

Compose Transporter helps with database transformations from one store to another. It can also sync from one to another or several stores.

Transporter

About

Transporter allows the user to configure a number of data adaptors as sources or sinks. These can be databases, files or other resources. Data is read from the sources, converted into a message format, and then send down to the sink where the message is converted into a writable format for its destination. The user can also create data transformations in JavaScript which can sit between the source and sink and manipulate or filter the message flow.

Adaptors may be able to track changes as they happen in source data. This "tail" capability allows a Transporter to stay running and keep the sinks in sync.

BETA Feature

As of release v0.4.0, transporter contains support for being able to resume operations after being stopped. The feature is disabled by default and can be enabled with the following:

source = mongodb({"uri": "mongo://localhost:27017/source_db"})
sink = mongodb({"uri": "mongo://localhost:27017/sink_db"})
t.Config({"xlog_dir":"/data/transporter"})
  .Source("source", source)
  .Save("sink", sink)

When using the above pipeline, all messages will be appended to a commit log and successful processing of a message is handled via consumer/sink offset tracking.

Below is a list of each adaptor and its support of the feature:

+---------------+-------------+----------------+
|    adaptor    | read resume | write tracking |
+---------------+-------------+----------------+
| elasticsearch |     N/A     |       X        | 
|     file      |             |       X        | 
|    mongodb    |      X      |       X        | 
|  postgresql   |             |       X        | 
|   rabbitmq    |      X      |                | 
|   rethinkdb   |             |       X        | 
+---------------+-------------+----------------+

Downloading Transporter

The latest binary releases are available from the Github Repository

Adaptors

Each adaptor has its own README page with details on configuration and capabilities.

Native Functions

Each native function can be used as part of a Transform step in the pipeline.

Commands

init

transporter init [source adaptor name] [sink adaptor name]

Generates a basic pipeline.js file in the current directory.

Example

$ transporter init mongodb elasticsearch
$ cat pipeline.js
var source = mongodb({
  "uri": "${MONGODB_URI}"
  // "timeout": "30s",
  // "tail": false,
  // "ssl": false,
  // "cacerts": ["/path/to/cert.pem"],
  // "wc": 1,
  // "fsync": false,
  // "bulk": false,
  // "collection_filters": "{}",
  // "read_preference": "Primary"
})

var sink = elasticsearch({
  "uri": "${ELASTICSEARCH_URI}"
  // "timeout": "10s", // defaults to 30s
  // "aws_access_key": "ABCDEF", // used for signing requests to AWS Elasticsearch service
  // "aws_access_secret": "ABCDEF" // used for signing requests to AWS Elasticsearch service
})

t.Source(source).Save(sink)
// t.Source("source", source).Save("sink", sink)
// t.Source("source", source, "namespace").Save("sink", sink, "namespace")
$

Edit the pipeline.js file to configure the source and sink nodes and also to set the namespace.

about

transporter about

Lists all the adaptors currently available.

Example

elasticsearch - an elasticsearch sink adaptor
file - an adaptor that reads / writes files
mongodb - a mongodb adaptor that functions as both a source and a sink
postgres - a postgres adaptor that functions as both a source and a sink
rabbitmq - an adaptor that handles publish/subscribe messaging with RabbitMQ 
rethinkdb - a rethinkdb adaptor that functions as both a source and a sink

Giving the name of an adaptor produces more detail, such as the sample configuration.

Example

transporter about postgres
postgres - a postgres adaptor that functions as both a source and a sink

 Sample configuration:
{
  "uri": "${POSTGRESQL_URI}"
  // "debug": false,
  // "tail": false,
  // "replication_slot": "slot"
}

run

transporter run [-log.level "info"] <application.js>

Runs the pipeline script file which has its name given as the final parameter.

test

transporter test [-log.level "info"] <application.js>

Evaluates and connects the pipeline, sources and sinks. Establishes connections but does not run. Prints out the state of connections at the end. Useful for debugging new configurations.

xlog

The xlog command is useful for inspecting the current state of the commit log. It contains 3 subcommands, current, oldest, and offset, as well as a required flag -xlog_dir which should be the path to where the commit log is stored.

NOTE the command should only be run against the commit log when transporter is not actively running.

transporter xlog -xlog_dir=/path/to/dir current
12345

Returns the most recent offset appended to the commit log.

transporter xlog -xlog_dir=/path/to/dir oldest
0

Returns the oldest offset in the commit log.

transporter xlog -xlog_dir=/path/to/dir show 0
offset    : 0
timestamp : 2017-05-16 11:00:20 -0400 EDT
mode      : COPY
op        : INSERT
key       : MyCollection
value     : {"_id":{"$oid":"58efd14b60d271d7457b4f24"},"i":0}

Prints out the entry stored at the provided offset.

offset

The offset command provides access to current state of each consumer (i.e. sink) offset. It contains 4 subcommands, list, show, mark, and delete, as well as a required flag -xlog_dir which should be the path to where the commit log is stored.

transporter offset -xlog_dir=/path/to/dir list
+------+---------+
| SINK | OFFSET  |
+------+---------+
| sink | 1103003 |
+------+---------+

Lists all consumers and their associated offset in xlog_dir.

transporter offset -xlog_dir=/path/to/dir show sink
+-------------------+---------+
|     NAMESPACE     | OFFSET  |
+-------------------+---------+
| newCollection     | 1102756 |
| testC             | 1103003 |
| MyCollection      |  999429 |
| anotherCollection | 1002997 |
+-------------------+---------+

Prints out each namespace and its associated offset.

transporter offset -xlog_dir=/path/to/dir mark sink 1
OK

Rewrites the namespace offset map based on the provided offset.

transporter offset -xlog_dir=/path/to/dir delete sink
OK

Removes the consumer (i.e. sink) log directory.

flags

-log.level "info" - sets the logging level. This is application logging and is unrelated to the commit log. Default is info; can be debug or error.

Building Transporter

Essentials

go build ./cmd/transporter/...

Building guides

macOS Windows Vagrant

Transporter Resources

Contributing to Transporter

Want to help out with Transporter? Great! There are instructions to get you started here.

Licensing

Transporter is licensed under the New BSD License. See LICENSE for full license text.

Support and Guarantees

Compose does not provide support nor guarantee stability or functionality of this tool. Please take adequate caution when using Transporter to ensure that it's the right tool for the job. Transporter may not account for failure scenarios that could lead to unexpected behavior. Always take backups, always test in dev, and always feel free to submit a PR with enhancements, features, and bug fixes.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].