Alternatives to Apache Impala logo

Alternatives to Apache Impala

Presto, Apache Drill, Apache Hive, Apache Spark, and HBase are the most popular alternatives and competitors to Apache Impala.
145
301
+ 1
18

What is Apache Impala and what are its top alternatives?

Apache Impala is a high-performance SQL query engine that allows users to run interactive queries on data stored in Hadoop or Apache HBase without requiring data movement or transformation. It provides low-latency analytics for big data workloads and is integrated with Hadoop components like HDFS, HBase, and Apache Hive. However, Impala has limitations in terms of scalability and does not support as many file formats as some other alternatives.

  1. Presto: Presto is an open-source distributed SQL query engine designed for running interactive analytic queries against large datasets. Key features include high performance, support for multiple data sources, and an advanced optimizer. Pros include high scalability and flexibility, while cons include a steeper learning curve compared to Impala.
  2. Drill: Apache Drill is a schema-free SQL query engine for Hadoop, NoSQL, and Cloud storage. It provides a simple query language, ability to query complex data formats, and support for multiple data sources. Pros include schema flexibility and speed, while cons include limited support for complex queries compared to Impala.
  3. PrestoDB: PrestoDB is a distributed SQL query engine designed for running interactive analytic queries against large datasets. Key features include high performance, support for multiple data sources, and an advanced optimizer. Pros include high scalability and flexibility, while cons include a steeper learning curve compared to Impala.
  4. Greenplum: Greenplum is an open-source, massively parallel data platform that provides advanced analytics and data processing capabilities. Key features include SQL support, data partitioning, and advanced analytics functions. Pros include high performance and scalability, while cons include higher resource requirements compared to Impala.
  5. CockroachDB: CockroachDB is a distributed SQL database that offers scalability, consistency, and high availability. Key features include distributed SQL, ACID transactions, and geo-partitioning. Pros include easy scalability and high performance, while cons include a higher learning curve for users familiar with Impala.
  6. Snowflake: Snowflake is a cloud-based data warehousing platform that offers scalability, performance, and ease of use. Key features include automatic scaling, native support for semi-structured data, and a multi-cluster shared data architecture. Pros include high concurrency and cost-effectiveness, while cons include potential latency compared to Impala for certain workloads.
  7. Dremio: Dremio is a data-as-a-service platform that provides self-service data access and acceleration. Key features include data virtualization, data curation, and native cloud support. Pros include fast query performance and data governance capabilities, while cons include a higher cost compared to Impala for some users.
  8. ClickHouse: ClickHouse is an open-source column-oriented database management system that offers high performance and real-time analytics. Key features include SQL support, distributed architecture, and compression capabilities. Pros include fast query execution and efficient storage, while cons include limited support for complex queries compared to Impala.
  9. BigQuery: BigQuery is a fully managed enterprise data warehouse that enables users to run fast, SQL-like queries on large datasets. Key features include serverless architecture, real-time analytics, and automatic scaling. Pros include high performance and ease of use, while cons include potential cost concerns for large workloads compared to Impala.
  10. Spark SQL: Spark SQL is a component of Apache Spark that provides a SQL interface for data processing. Key features include support for SQL queries, integration with Spark ecosystem, and DataFrame API. Pros include high performance and unified data processing capabilities, while cons include potential complexity compared to Impala for some users.

Top Alternatives to Apache Impala

  • Presto
    Presto

    Distributed SQL Query Engine for Big Data

  • Apache Drill
    Apache Drill

    Apache Drill is a distributed MPP query layer that supports SQL and alternative query languages against NoSQL and Hadoop data storage systems. It was inspired in part by Google's Dremel. ...

  • Apache Hive
    Apache Hive

    Hive facilitates reading, writing, and managing large datasets residing in distributed storage using SQL. Structure can be projected onto data already in storage. ...

  • Apache Spark
    Apache Spark

    Spark is a fast and general processing engine compatible with Hadoop data. It can run in Hadoop clusters through YARN or Spark's standalone mode, and it can process data in HDFS, HBase, Cassandra, Hive, and any Hadoop InputFormat. It is designed to perform both batch processing (similar to MapReduce) and new workloads like streaming, interactive queries, and machine learning. ...

  • HBase
    HBase

    Apache HBase is an open-source, distributed, versioned, column-oriented store modeled after Google' Bigtable: A Distributed Storage System for Structured Data by Chang et al. Just as Bigtable leverages the distributed data storage provided by the Google File System, HBase provides Bigtable-like capabilities on top of Apache Hadoop. ...

  • MySQL
    MySQL

    The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. ...

  • PostgreSQL
    PostgreSQL

    PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions. ...

  • MongoDB
    MongoDB

    MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding. ...

Apache Impala alternatives & related posts

Presto logo

Presto

394
1K
66
Distributed SQL Query Engine for Big Data
394
1K
+ 1
66
PROS OF PRESTO
  • 18
    Works directly on files in s3 (no ETL)
  • 13
    Open-source
  • 12
    Join multiple databases
  • 10
    Scalable
  • 7
    Gets ready in minutes
  • 6
    MPP
CONS OF PRESTO
    Be the first to leave a con

    related Presto posts

    Ashish Singh
    Tech Lead, Big Data Platform at Pinterest · | 38 upvotes · 3.1M views

    To provide employees with the critical need of interactive querying, we’ve worked with Presto, an open-source distributed SQL query engine, over the years. Operating Presto at Pinterest’s scale has involved resolving quite a few challenges like, supporting deeply nested and huge thrift schemas, slow/ bad worker detection and remediation, auto-scaling cluster, graceful cluster shutdown and impersonation support for ldap authenticator.

    Our infrastructure is built on top of Amazon EC2 and we leverage Amazon S3 for storing our data. This separates compute and storage layers, and allows multiple compute clusters to share the S3 data.

    We have hundreds of petabytes of data and tens of thousands of Apache Hive tables. Our Presto clusters are comprised of a fleet of 450 r4.8xl EC2 instances. Presto clusters together have over 100 TBs of memory and 14K vcpu cores. Within Pinterest, we have close to more than 1,000 monthly active users (out of total 1,600+ Pinterest employees) using Presto, who run about 400K queries on these clusters per month.

    Each query submitted to Presto cluster is logged to a Kafka topic via Singer. Singer is a logging agent built at Pinterest and we talked about it in a previous post. Each query is logged when it is submitted and when it finishes. When a Presto cluster crashes, we will have query submitted events without corresponding query finished events. These events enable us to capture the effect of cluster crashes over time.

    Each Presto cluster at Pinterest has workers on a mix of dedicated AWS EC2 instances and Kubernetes pods. Kubernetes platform provides us with the capability to add and remove workers from a Presto cluster very quickly. The best-case latency on bringing up a new worker on Kubernetes is less than a minute. However, when the Kubernetes cluster itself is out of resources and needs to scale up, it can take up to ten minutes. Some other advantages of deploying on Kubernetes platform is that our Presto deployment becomes agnostic of cloud vendor, instance types, OS, etc.

    #BigData #AWS #DataScience #DataEngineering

    See more
    Eric Colson
    Chief Algorithms Officer at Stitch Fix · | 21 upvotes · 6.1M views

    The algorithms and data infrastructure at Stitch Fix is housed in #AWS. Data acquisition is split between events flowing through Kafka, and periodic snapshots of PostgreSQL DBs. We store data in an Amazon S3 based data warehouse. Apache Spark on Yarn is our tool of choice for data movement and #ETL. Because our storage layer (s3) is decoupled from our processing layer, we are able to scale our compute environment very elastically. We have several semi-permanent, autoscaling Yarn clusters running to serve our data processing needs. While the bulk of our compute infrastructure is dedicated to algorithmic processing, we also implemented Presto for adhoc queries and dashboards.

    Beyond data movement and ETL, most #ML centric jobs (e.g. model training and execution) run in a similarly elastic environment as containers running Python and R code on Amazon EC2 Container Service clusters. The execution of batch jobs on top of ECS is managed by Flotilla, a service we built in house and open sourced (see https://github.com/stitchfix/flotilla-os).

    At Stitch Fix, algorithmic integrations are pervasive across the business. We have dozens of data products actively integrated systems. That requires serving layer that is robust, agile, flexible, and allows for self-service. Models produced on Flotilla are packaged for deployment in production using Khan, another framework we've developed internally. Khan provides our data scientists the ability to quickly productionize those models they've developed with open source frameworks in Python 3 (e.g. PyTorch, sklearn), by automatically packaging them as Docker containers and deploying to Amazon ECS. This provides our data scientist a one-click method of getting from their algorithms to production. We then integrate those deployments into a service mesh, which allows us to A/B test various implementations in our product.

    For more info:

    #DataScience #DataStack #Data

    See more
    Apache Drill logo

    Apache Drill

    71
    170
    16
    Schema-Free SQL Query Engine for Hadoop and NoSQL
    71
    170
    + 1
    16
    PROS OF APACHE DRILL
    • 4
      NoSQL and Hadoop
    • 3
      Free
    • 3
      Lightning speed and simplicity in face of data jungle
    • 2
      Well documented for fast install
    • 1
      SQL interface to multiple datasources
    • 1
      Nested Data support
    • 1
      Read Structured and unstructured data
    • 1
      V1.10 released - https://drill.apache.org/
    CONS OF APACHE DRILL
      Be the first to leave a con

      related Apache Drill posts

      Apache Hive logo

      Apache Hive

      478
      474
      0
      Data Warehouse Software for Reading, Writing, and Managing Large Datasets
      478
      474
      + 1
      0
      PROS OF APACHE HIVE
        Be the first to leave a pro
        CONS OF APACHE HIVE
          Be the first to leave a con

          related Apache Hive posts

          Ashish Singh
          Tech Lead, Big Data Platform at Pinterest · | 38 upvotes · 3.1M views

          To provide employees with the critical need of interactive querying, we’ve worked with Presto, an open-source distributed SQL query engine, over the years. Operating Presto at Pinterest’s scale has involved resolving quite a few challenges like, supporting deeply nested and huge thrift schemas, slow/ bad worker detection and remediation, auto-scaling cluster, graceful cluster shutdown and impersonation support for ldap authenticator.

          Our infrastructure is built on top of Amazon EC2 and we leverage Amazon S3 for storing our data. This separates compute and storage layers, and allows multiple compute clusters to share the S3 data.

          We have hundreds of petabytes of data and tens of thousands of Apache Hive tables. Our Presto clusters are comprised of a fleet of 450 r4.8xl EC2 instances. Presto clusters together have over 100 TBs of memory and 14K vcpu cores. Within Pinterest, we have close to more than 1,000 monthly active users (out of total 1,600+ Pinterest employees) using Presto, who run about 400K queries on these clusters per month.

          Each query submitted to Presto cluster is logged to a Kafka topic via Singer. Singer is a logging agent built at Pinterest and we talked about it in a previous post. Each query is logged when it is submitted and when it finishes. When a Presto cluster crashes, we will have query submitted events without corresponding query finished events. These events enable us to capture the effect of cluster crashes over time.

          Each Presto cluster at Pinterest has workers on a mix of dedicated AWS EC2 instances and Kubernetes pods. Kubernetes platform provides us with the capability to add and remove workers from a Presto cluster very quickly. The best-case latency on bringing up a new worker on Kubernetes is less than a minute. However, when the Kubernetes cluster itself is out of resources and needs to scale up, it can take up to ten minutes. Some other advantages of deploying on Kubernetes platform is that our Presto deployment becomes agnostic of cloud vendor, instance types, OS, etc.

          #BigData #AWS #DataScience #DataEngineering

          See more
          Jan Vlnas
          Developer Advocate at Superface · | 5 upvotes · 451K views

          From my point of view, both OpenRefine and Apache Hive serve completely different purposes. OpenRefine is intended for interactive cleaning of messy data locally. You could work with their libraries to use some of OpenRefine features as part of your data pipeline (there are pointers in FAQ), but OpenRefine in general is intended for a single-user local operation.

          I can't recommend a particular alternative without better understanding of your use case. But if you are looking for an interactive tool to work with big data at scale, take a look at notebook environments like Jupyter, Databricks, or Deepnote. If you are building a data processing pipeline, consider also Apache Spark.

          Edit: Fixed references from Hadoop to Hive, which is actually closer to Spark.

          See more
          Apache Spark logo

          Apache Spark

          3K
          3.5K
          140
          Fast and general engine for large-scale data processing
          3K
          3.5K
          + 1
          140
          PROS OF APACHE SPARK
          • 61
            Open-source
          • 48
            Fast and Flexible
          • 8
            One platform for every big data problem
          • 8
            Great for distributed SQL like applications
          • 6
            Easy to install and to use
          • 3
            Works well for most Datascience usecases
          • 2
            Interactive Query
          • 2
            Machine learning libratimery, Streaming in real
          • 2
            In memory Computation
          CONS OF APACHE SPARK
          • 4
            Speed

          related Apache Spark posts

          Eric Colson
          Chief Algorithms Officer at Stitch Fix · | 21 upvotes · 6.1M views

          The algorithms and data infrastructure at Stitch Fix is housed in #AWS. Data acquisition is split between events flowing through Kafka, and periodic snapshots of PostgreSQL DBs. We store data in an Amazon S3 based data warehouse. Apache Spark on Yarn is our tool of choice for data movement and #ETL. Because our storage layer (s3) is decoupled from our processing layer, we are able to scale our compute environment very elastically. We have several semi-permanent, autoscaling Yarn clusters running to serve our data processing needs. While the bulk of our compute infrastructure is dedicated to algorithmic processing, we also implemented Presto for adhoc queries and dashboards.

          Beyond data movement and ETL, most #ML centric jobs (e.g. model training and execution) run in a similarly elastic environment as containers running Python and R code on Amazon EC2 Container Service clusters. The execution of batch jobs on top of ECS is managed by Flotilla, a service we built in house and open sourced (see https://github.com/stitchfix/flotilla-os).

          At Stitch Fix, algorithmic integrations are pervasive across the business. We have dozens of data products actively integrated systems. That requires serving layer that is robust, agile, flexible, and allows for self-service. Models produced on Flotilla are packaged for deployment in production using Khan, another framework we've developed internally. Khan provides our data scientists the ability to quickly productionize those models they've developed with open source frameworks in Python 3 (e.g. PyTorch, sklearn), by automatically packaging them as Docker containers and deploying to Amazon ECS. This provides our data scientist a one-click method of getting from their algorithms to production. We then integrate those deployments into a service mesh, which allows us to A/B test various implementations in our product.

          For more info:

          #DataScience #DataStack #Data

          See more
          Patrick Sun
          Software Engineer at Stitch Fix · | 10 upvotes · 52.9K views

          As a frontend engineer on the Algorithms & Analytics team at Stitch Fix, I work with data scientists to develop applications and visualizations to help our internal business partners make data-driven decisions. I envisioned a platform that would assist data scientists in the data exploration process, allowing them to visually explore and rapidly iterate through their assumptions, then share their insights with others. This would align with our team's philosophy of having engineers "deploy platforms, services, abstractions, and frameworks that allow the data scientists to conceive of, develop, and deploy their ideas with autonomy", and solve the pain of data exploration.

          The final product, code-named Dora, is built with React, Redux.js and Victory, backed by Elasticsearch to enable fast and iterative data exploration, and uses Apache Spark to move data from our Amazon S3 data warehouse into the Elasticsearch cluster.

          See more
          HBase logo

          HBase

          462
          494
          15
          The Hadoop database, a distributed, scalable, big data store
          462
          494
          + 1
          15
          PROS OF HBASE
          • 9
            Performance
          • 5
            OLTP
          • 1
            Fast Point Queries
          CONS OF HBASE
            Be the first to leave a con

            related HBase posts

            I am researching different querying solutions to handle ~1 trillion records of data (in the realm of a petabyte). The data is mostly textual. I have identified a few options: Milvus, HBase, RocksDB, and Elasticsearch. I was wondering if there is a good way to compare the performance of these options (or if anyone has already done something like this). I want to be able to compare the speed of ingesting and querying textual data from these tools. Does anyone have information on this or know where I can find some? Thanks in advance!

            See more

            Hi, I'm building a machine learning pipelines to store image bytes and image vectors in the backend.

            So, when users query for the random access image data (key), we return the image bytes and perform machine learning model operations on it.

            I'm currently considering going with Amazon S3 (in the future, maybe add Redis caching layer) as the backend system to store the information (s3 buckets with sharded prefixes).

            As the latency of S3 is 100-200ms (get/put) and it has a high throughput of 3500 puts/sec and 5500 gets/sec for a given bucker/prefix. In the future I need to reduce the latency, I can add Redis cache.

            Also, s3 costs are way fewer than HBase (on Amazon EC2 instances with 3x replication factor)

            I have not personally used HBase before, so can someone help me if I'm making the right choice here? I'm not aware of Hbase latencies and I have learned that the MOB feature on Hbase has to be turned on if we have store image bytes on of the column families as the avg image bytes are 240Kb.

            See more
            MySQL logo

            MySQL

            124.8K
            105.6K
            3.8K
            The world's most popular open source database
            124.8K
            105.6K
            + 1
            3.8K
            PROS OF MYSQL
            • 800
              Sql
            • 679
              Free
            • 562
              Easy
            • 528
              Widely used
            • 490
              Open source
            • 180
              High availability
            • 160
              Cross-platform support
            • 104
              Great community
            • 79
              Secure
            • 75
              Full-text indexing and searching
            • 26
              Fast, open, available
            • 16
              Reliable
            • 16
              SSL support
            • 15
              Robust
            • 9
              Enterprise Version
            • 7
              Easy to set up on all platforms
            • 3
              NoSQL access to JSON data type
            • 1
              Relational database
            • 1
              Easy, light, scalable
            • 1
              Sequel Pro (best SQL GUI)
            • 1
              Replica Support
            CONS OF MYSQL
            • 16
              Owned by a company with their own agenda
            • 3
              Can't roll back schema changes

            related MySQL posts

            Nick Rockwell
            SVP, Engineering at Fastly · | 46 upvotes · 3.9M views

            When I joined NYT there was already broad dissatisfaction with the LAMP (Linux Apache HTTP Server MySQL PHP) Stack and the front end framework, in particular. So, I wasn't passing judgment on it. I mean, LAMP's fine, you can do good work in LAMP. It's a little dated at this point, but it's not ... I didn't want to rip it out for its own sake, but everyone else was like, "We don't like this, it's really inflexible." And I remember from being outside the company when that was called MIT FIVE when it had launched. And been observing it from the outside, and I was like, you guys took so long to do that and you did it so carefully, and yet you're not happy with your decisions. Why is that? That was more the impetus. If we're going to do this again, how are we going to do it in a way that we're gonna get a better result?

            So we're moving quickly away from LAMP, I would say. So, right now, the new front end is React based and using Apollo. And we've been in a long, protracted, gradual rollout of the core experiences.

            React is now talking to GraphQL as a primary API. There's a Node.js back end, to the front end, which is mainly for server-side rendering, as well.

            Behind there, the main repository for the GraphQL server is a big table repository, that we call Bodega because it's a convenience store. And that reads off of a Kafka pipeline.

            See more
            Tim Abbott

            We've been using PostgreSQL since the very early days of Zulip, but we actually didn't use it from the beginning. Zulip started out as a MySQL project back in 2012, because we'd heard it was a good choice for a startup with a wide community. However, we found that even though we were using the Django ORM for most of our database access, we spent a lot of time fighting with MySQL. Issues ranged from bad collation defaults, to bad query plans which required a lot of manual query tweaks.

            We ended up getting so frustrated that we tried out PostgresQL, and the results were fantastic. We didn't have to do any real customization (just some tuning settings for how big a server we had), and all of our most important queries were faster out of the box. As a result, we were able to delete a bunch of custom queries escaping the ORM that we'd written to make the MySQL query planner happy (because postgres just did the right thing automatically).

            And then after that, we've just gotten a ton of value out of postgres. We use its excellent built-in full-text search, which has helped us avoid needing to bring in a tool like Elasticsearch, and we've really enjoyed features like its partial indexes, which saved us a lot of work adding unnecessary extra tables to get good performance for things like our "unread messages" and "starred messages" indexes.

            I can't recommend it highly enough.

            See more
            PostgreSQL logo

            PostgreSQL

            97.8K
            81.9K
            3.5K
            A powerful, open source object-relational database system
            97.8K
            81.9K
            + 1
            3.5K
            PROS OF POSTGRESQL
            • 763
              Relational database
            • 510
              High availability
            • 439
              Enterprise class database
            • 383
              Sql
            • 304
              Sql + nosql
            • 173
              Great community
            • 147
              Easy to setup
            • 131
              Heroku
            • 130
              Secure by default
            • 113
              Postgis
            • 50
              Supports Key-Value
            • 48
              Great JSON support
            • 34
              Cross platform
            • 33
              Extensible
            • 28
              Replication
            • 26
              Triggers
            • 23
              Multiversion concurrency control
            • 23
              Rollback
            • 21
              Open source
            • 18
              Heroku Add-on
            • 17
              Stable, Simple and Good Performance
            • 15
              Powerful
            • 13
              Lets be serious, what other SQL DB would you go for?
            • 11
              Good documentation
            • 9
              Scalable
            • 8
              Free
            • 8
              Reliable
            • 8
              Intelligent optimizer
            • 7
              Transactional DDL
            • 7
              Modern
            • 6
              One stop solution for all things sql no matter the os
            • 5
              Relational database with MVCC
            • 5
              Faster Development
            • 4
              Full-Text Search
            • 4
              Developer friendly
            • 3
              Excellent source code
            • 3
              Free version
            • 3
              Great DB for Transactional system or Application
            • 3
              Relational datanbase
            • 3
              search
            • 3
              Open-source
            • 2
              Text
            • 2
              Full-text
            • 1
              Can handle up to petabytes worth of size
            • 1
              Composability
            • 1
              Multiple procedural languages supported
            • 0
              Native
            CONS OF POSTGRESQL
            • 10
              Table/index bloatings

            related PostgreSQL posts

            Simon Reymann
            Senior Fullstack Developer at QUANTUSflow Software GmbH · | 30 upvotes · 10.7M views

            Our whole DevOps stack consists of the following tools:

            • GitHub (incl. GitHub Pages/Markdown for Documentation, GettingStarted and HowTo's) for collaborative review and code management tool
            • Respectively Git as revision control system
            • SourceTree as Git GUI
            • Visual Studio Code as IDE
            • CircleCI for continuous integration (automatize development process)
            • Prettier / TSLint / ESLint as code linter
            • SonarQube as quality gate
            • Docker as container management (incl. Docker Compose for multi-container application management)
            • VirtualBox for operating system simulation tests
            • Kubernetes as cluster management for docker containers
            • Heroku for deploying in test environments
            • nginx as web server (preferably used as facade server in production environment)
            • SSLMate (using OpenSSL) for certificate management
            • Amazon EC2 (incl. Amazon S3) for deploying in stage (production-like) and production environments
            • PostgreSQL as preferred database system
            • Redis as preferred in-memory database/store (great for caching)

            The main reason we have chosen Kubernetes over Docker Swarm is related to the following artifacts:

            • Key features: Easy and flexible installation, Clear dashboard, Great scaling operations, Monitoring is an integral part, Great load balancing concepts, Monitors the condition and ensures compensation in the event of failure.
            • Applications: An application can be deployed using a combination of pods, deployments, and services (or micro-services).
            • Functionality: Kubernetes as a complex installation and setup process, but it not as limited as Docker Swarm.
            • Monitoring: It supports multiple versions of logging and monitoring when the services are deployed within the cluster (Elasticsearch/Kibana (ELK), Heapster/Grafana, Sysdig cloud integration).
            • Scalability: All-in-one framework for distributed systems.
            • Other Benefits: Kubernetes is backed by the Cloud Native Computing Foundation (CNCF), huge community among container orchestration tools, it is an open source and modular tool that works with any OS.
            See more
            Jeyabalaji Subramanian

            Recently we were looking at a few robust and cost-effective ways of replicating the data that resides in our production MongoDB to a PostgreSQL database for data warehousing and business intelligence.

            We set ourselves the following criteria for the optimal tool that would do this job: - The data replication must be near real-time, yet it should NOT impact the production database - The data replication must be horizontally scalable (based on the load), asynchronous & crash-resilient

            Based on the above criteria, we selected the following tools to perform the end to end data replication:

            We chose MongoDB Stitch for picking up the changes in the source database. It is the serverless platform from MongoDB. One of the services offered by MongoDB Stitch is Stitch Triggers. Using stitch triggers, you can execute a serverless function (in Node.js) in real time in response to changes in the database. When there are a lot of database changes, Stitch automatically "feeds forward" these changes through an asynchronous queue.

            We chose Amazon SQS as the pipe / message backbone for communicating the changes from MongoDB to our own replication service. Interestingly enough, MongoDB stitch offers integration with AWS services.

            In the Node.js function, we wrote minimal functionality to communicate the database changes (insert / update / delete / replace) to Amazon SQS.

            Next we wrote a minimal micro-service in Python to listen to the message events on SQS, pickup the data payload & mirror the DB changes on to the target Data warehouse. We implemented source data to target data translation by modelling target table structures through SQLAlchemy . We deployed this micro-service as AWS Lambda with Zappa. With Zappa, deploying your services as event-driven & horizontally scalable Lambda service is dumb-easy.

            In the end, we got to implement a highly scalable near realtime Change Data Replication service that "works" and deployed to production in a matter of few days!

            See more
            MongoDB logo

            MongoDB

            93.2K
            80.5K
            4.1K
            The database for giant ideas
            93.2K
            80.5K
            + 1
            4.1K
            PROS OF MONGODB
            • 827
              Document-oriented storage
            • 593
              No sql
            • 553
              Ease of use
            • 464
              Fast
            • 410
              High performance
            • 255
              Free
            • 218
              Open source
            • 180
              Flexible
            • 145
              Replication & high availability
            • 112
              Easy to maintain
            • 42
              Querying
            • 39
              Easy scalability
            • 38
              Auto-sharding
            • 37
              High availability
            • 31
              Map/reduce
            • 27
              Document database
            • 25
              Easy setup
            • 25
              Full index support
            • 16
              Reliable
            • 15
              Fast in-place updates
            • 14
              Agile programming, flexible, fast
            • 12
              No database migrations
            • 8
              Easy integration with Node.Js
            • 8
              Enterprise
            • 6
              Enterprise Support
            • 5
              Great NoSQL DB
            • 4
              Support for many languages through different drivers
            • 3
              Schemaless
            • 3
              Aggregation Framework
            • 3
              Drivers support is good
            • 2
              Fast
            • 2
              Managed service
            • 2
              Easy to Scale
            • 2
              Awesome
            • 2
              Consistent
            • 1
              Good GUI
            • 1
              Acid Compliant
            CONS OF MONGODB
            • 6
              Very slowly for connected models that require joins
            • 3
              Not acid compliant
            • 2
              Proprietary query language

            related MongoDB posts

            Jeyabalaji Subramanian

            Recently we were looking at a few robust and cost-effective ways of replicating the data that resides in our production MongoDB to a PostgreSQL database for data warehousing and business intelligence.

            We set ourselves the following criteria for the optimal tool that would do this job: - The data replication must be near real-time, yet it should NOT impact the production database - The data replication must be horizontally scalable (based on the load), asynchronous & crash-resilient

            Based on the above criteria, we selected the following tools to perform the end to end data replication:

            We chose MongoDB Stitch for picking up the changes in the source database. It is the serverless platform from MongoDB. One of the services offered by MongoDB Stitch is Stitch Triggers. Using stitch triggers, you can execute a serverless function (in Node.js) in real time in response to changes in the database. When there are a lot of database changes, Stitch automatically "feeds forward" these changes through an asynchronous queue.

            We chose Amazon SQS as the pipe / message backbone for communicating the changes from MongoDB to our own replication service. Interestingly enough, MongoDB stitch offers integration with AWS services.

            In the Node.js function, we wrote minimal functionality to communicate the database changes (insert / update / delete / replace) to Amazon SQS.

            Next we wrote a minimal micro-service in Python to listen to the message events on SQS, pickup the data payload & mirror the DB changes on to the target Data warehouse. We implemented source data to target data translation by modelling target table structures through SQLAlchemy . We deployed this micro-service as AWS Lambda with Zappa. With Zappa, deploying your services as event-driven & horizontally scalable Lambda service is dumb-easy.

            In the end, we got to implement a highly scalable near realtime Change Data Replication service that "works" and deployed to production in a matter of few days!

            See more
            Robert Zuber

            We use MongoDB as our primary #datastore. Mongo's approach to replica sets enables some fantastic patterns for operations like maintenance, backups, and #ETL.

            As we pull #microservices from our #monolith, we are taking the opportunity to build them with their own datastores using PostgreSQL. We also use Redis to cache data we’d never store permanently, and to rate-limit our requests to partners’ APIs (like GitHub).

            When we’re dealing with large blobs of immutable data (logs, artifacts, and test results), we store them in Amazon S3. We handle any side-effects of S3’s eventual consistency model within our own code. This ensures that we deal with user requests correctly while writes are in process.

            See more