Software Alternatives, Accelerators & Startups

etcd VS JSON Server

Compare etcd VS JSON Server and see what are their differences

etcd logo etcd

A distributed, reliable key-value store for the most critical data of a distributed system

JSON Server logo JSON Server

Get a full fake REST API with zero coding in less than 30 seconds. For front-end developers who need a quick back-end for prototyping and mocking
  • etcd Landing page
    Landing page //
    2021-07-29
  • JSON Server Landing page
    Landing page //
    2023-08-01

etcd features and specs

  • Consistency
    etcd uses the Raft consensus algorithm to ensure strong consistency across distributed systems, making it ideal for scenarios where reliable data storage is critical.
  • High Availability
    By distributing data across multiple nodes, etcd ensures high availability and fault tolerance, allowing services to remain operational even if some nodes fail.
  • Simplicity
    etcd offers a simple key-value store interface, making it easy to understand and integrate with other services without requiring complex configurations.
  • Performance
    Optimized for fast reads and writes, etcd can handle large volumes of concurrent requests, making it suitable for high-performance applications.
  • Secure
    etcd provides excellent security features, including SSL/TLS encryption for data in transit and role-based access control to ensure that data access is tightly controlled.

Possible disadvantages of etcd

  • Resource Intensive
    Running etcd, especially in a clustered configuration, can be resource-intensive, requiring significant CPU and memory to ensure optimal performance and reliability.
  • Operational Complexity
    Although etcd itself is simple, managing a distributed etcd cluster can become complex, requiring expertise to configure and maintain properly.
  • Data Volume Limitations
    etcd is not designed as a general-purpose database and has limitations on how much data it can efficiently store, typically up to a few gigabytes per cluster.
  • Write Throughput
    The write throughput of etcd can be a bottleneck under heavy load, as it needs to ensure data consistency across nodes, which can introduce latency.
  • Limited Query Capabilities
    As a key-value store, etcd lacks the advanced querying capabilities of traditional databases, which may limit its use for complex data retrieval operations.

JSON Server features and specs

  • Ease of Setup
    JSON Server can be set up quickly with minimal configuration, making it ideal for prototyping and rapid development. It allows developers to have a fully functioning REST API within minutes.
  • RESTful API
    It provides a standard RESTful API out of the box, allowing developers to perform all CRUD operations. This is helpful for simulating a real-world server while testing client-side applications.
  • Customization
    JSON Server supports middlewares, routes, and custom rules, allowing developers to customize the behavior and structure of the API to better suit their needs.
  • Fakes Backend Data
    It's great for simulating backend responses without needing a real backend setup, useful in front-end development to test components and interactions.
  • Lightweight
    As a lightweight server, it requires fewer resources and is quite simple compared to setting up a full-fledged backend server.

Possible disadvantages of JSON Server

  • Not for Production
    JSON Server is designed for development and testing. It is not suitable for production use due to performance limits and lack of robust security features.
  • Limited Functionality
    While JSON Server is great for basic CRUD operations, it lacks advanced features like authentication, authorization, and complex querying.
  • Data Persistence
    Data is stored in a JSON file, and while this is convenient for testing, it is not suitable for applications that require persistent and scalable data storage.
  • In-memory Limitations
    Being an in-memory server, it may have issues with handling large datasets or complex data structures efficiently.
  • Manual Data Reset
    Any changes made to the JSON file while the server is running require manual resets or reloads to reflect in the API, which can be cumbersome during continuous development cycles.

etcd videos

ETCD in Kubernetes

More videos:

  • Review - Service Discovery Zookeeper vs etcd vs consul ุฃูƒุชุดุงู ุงู„ุฎุฏู…ุงุช ุดุฑุญ ุนุฑุจู‰
  • Review - Episode#11 Working with ETCD - Backup and Restore Operations - Part#1

JSON Server videos

Angular CRUD with Web API Tutorial Part #3 - Setup Local JSON Server and Mock API Endpoints

Category Popularity

0-100% (relative to etcd and JSON Server)
Web Servers
100 100%
0% 0
Development
0 0%
100% 100
Web And Application Servers
API Tools
0 0%
100% 100

User comments

Share your experience with using etcd and JSON Server. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

JSON Server might be a bit more popular than etcd. We know about 45 links to it since March 2021 and only 39 links to etcd. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

etcd mentions (39)

  • Global Distributed Consensus: The Missing Piece in Kubernetes
    Kubernetes runs on etcd, which uses the Raft consensus algorithm. It's a proven model for what it was designed to do: keep a single cluster's state perfectly consistent. When you create a deployment or a pod dies, every node in the cluster agrees on the new state of the world almost instantly. - Source: dev.to / 3 months ago
  • A Quick Dive into Kubernetes Operators - Part 1
    However, custom controllers face significant challenges when handling large volumes of data. Kubernetes relies on ETCD for all data storage, which limits scalability, flexibility, and performance for complex or high-volume workloads. What are the main issues? - Source: dev.to / 10 months ago
  • Kubernetes: Kubernetes API, API groups, CRDs, and the etcd
    For storing data in Kubernetes, we have another key component of the Control Planeโ€Š โ€” โ€Šetcd. - Source: dev.to / 12 months ago
  • Kubernetes Overview: Container Orchestration & Cloud-Native
    Etcd: A distributed key-value store maintaining cluster state and configuration data. ETCD backup strategies are critical for disaster recovery. - Source: dev.to / 11 months ago
  • Implementing Resource Versioning in Conveyor CI
    So we have to then take into consideration our data store and investigate if it's able to handle this form of incrementation. Conveyor CI uses etcd, a key-value store, it is reliable and highly performant. As we investigated further into the architecture of etcd, we realized that internally etcd uses Multi-Version Concurrency Control (MVCC) which allows reads at specific revisions of a record or key. This means... - Source: dev.to / 11 months ago
View more

JSON Server mentions (45)

  • Building a CRUD app with React Query, TypeScript, and Axios
    We'll be using json-server to create the REST API that we'll fetch data from. In the root of the project, create a db.json file with the contents. - Source: dev.to / about 2 years ago
  • Full Stack To Do list, a step-by-step tutorial
    Our backend will be little more than a two-way translation layer between the database and the user interface (UI). Later in this post we will identify other responsibilities of a backend but our implementation will be kept simple to demonstrate the fundamental machinery and concepts. It is worth noting the backend comes in two parts, web server and application server. Both json-server and Express are able to... - Source: dev.to / about 3 years ago
  • Improve Frontend-Backend development harmony with JSON-Server
    JSON-Server creates fake REST API with a minimum amount of configuration, it provides a simple way to create mock RESTful APIs and easily define the required endpoints, allows easy definition of the data schema in a JSON file and can serve as a reference for each figure in the project. - Source: dev.to / about 3 years ago
  • Dictionary app
    I thought about usingJson Server (hosting the repo with the words on Github to begin with), Googlesheets, or maybe Firestore (i would prefer not to use it ,to avoid extra costs just in case it gets a reasonable amount of users). It isnt a big app so I just want a simple solution for storing the words and fetching them. Source: about 3 years ago
  • Playwright - Not just for Frontend
    First, I didn't create a backend API for this example, but I used a fake API to test. I created it with json-server and json-server-auth. They are two npm packages that use a JSON file as a database and expose the database in an API. You can find more about json-server in its documentation and about json-server-auth here. - Source: dev.to / over 3 years ago
View more

What are some alternatives?

When comparing etcd and JSON Server, you can also consider the following products

Apache ZooKeeper - Apache ZooKeeper is an effort to develop and maintain an open-source server which enables highly reliable distributed coordination.

JSON Placeholder - JSON Placeholder is a modern platform that provides you online REST API, which you can instantly use whenever you need any fake data.

Docker Hub - Docker Hub is a cloud-based registry service

Postman - The Collaboration Platform for API Development

Eureka - Eureka is a contact center and enterprise performance through speech analytics that immediately reveals insights from automated analysis of communications including calls, chat, email, texts, social media, surveys and more.

mocki Fake JSON API - mocki Fake JSON API is an advanced platform that offers you to create API for personal use or testing purposes.