Couchbase promises P2P sync in mobile and edge DB

NoSQL slinger sees future in edge and IoT – and 'eventual consistency'


NoSQL database vendor Couchbase is about to launch the third upgrade to its mobile database, with new features promising REST-based remote administration support for large multi-tenant edge applications.

The future release will allow developers to embed lightweight data storage directly into applications on mobile and other "edge" devices such as those in IoT setups.

The new system offers the advantage of giving developers a single, coherent database whether applications were hosted in the cloud or end-user or edge devices, one industry analyst said.

Couchbase is a document-oriented database that uses JSON. Wayne Carter, Couchbase's vice president of engineering, said the approach was particularly suited to mobile and edge applications compared with relational databases.

"There is a fundamental difference at a consistency level," he said. "Our database – and many other NoSQL systems – go for eventual consistency instead of immediate consistency. What this allows you to do is distributed.

"Any time you go distributed, that means you have a network connection between two parts of the system. And when there's a network connection – if it's down or slow – then your system will either be unavailable or slow.

"By relaxing consistency, you're able to allow the systems to operate at their full speed and full availability at each independent distributed node in the system. In mobile and IoT, you're dealing with fundamentally unreliable networks."

Couchbase Mobile 3, in C, is set to be available for Ubuntu, Rasberry Pi, Debian, Windows 10, Android, iOS and macOS. Other operating systems will be supported in C#, Java, Swift and ObjC.

"Developers will be able to build applications on the same database, are using the same programming paradigms. They're using the same simple, SQL interface that we have across all our entire database platform," Carter said.

IDC estimates that the global market for so-called edge computing will reach $176bn in 2022, which is up nearly 15 per cent on 2021.

Dave McCarthy, IDC research vice president for cloud and edge infrastructure, told The Register that developers were driving demand for NoSQL databases.

"It's somewhat in response to the pace of innovation that they are being asked to deliver on, plus the diversity of data types," he said.

"More companies are adopting a NoSQL approach when they're building modern applications, mainly because it frees the developer to have more flexibility in how they store data and how they use it."

He said that the Couchbase mobile announcement offered both flexibility in deployment architectures and compatibility with existing environments.

"I think it's developers that have already decided that this is a good approach for them and the way they want to develop applications, but they want more, they want to be able to extend that capability outside of these cloud environments into these more distributed deployment locations."

Couchbase Mobile 3 deploys a Sync Gateway on the edge or mobile device, as well as the database itself, to allow developers to control how devices share data between devices and with a cloud-based system.

"The fact that it's modular in such a way that both of those components can run directly on a mobile device itself enables a really unique scenario around peer-to-peer syncing between devices," McCarthy said.

For example, an airline could digitise their pre-flight check process by embedding Couchbase onto tablets for recording inspections and synchronise across tablets in real-time, even disconnected from a central database, the company said.

"That's novel and I think there's a lot of scenarios like that, where it would be useful," McCarthy said.

Couchbase said "significant parts" of the source code for Mobile 3 is open source, licensed under BSL. More details are available here. ®


Other stories you might like

  • Experts: AI should be recognized as inventors in patent law
    Plus: Police release deepfake of murdered teen in cold case, and more

    In-brief Governments around the world should pass intellectual property laws that grant rights to AI systems, two academics at the University of New South Wales in Australia argued.

    Alexandra George, and Toby Walsh, professors of law and AI, respectively, believe failing to recognize machines as inventors could have long-lasting impacts on economies and societies. 

    "If courts and governments decide that AI-made inventions cannot be patented, the implications could be huge," they wrote in a comment article published in Nature. "Funders and businesses would be less incentivized to pursue useful research using AI inventors when a return on their investment could be limited. Society could miss out on the development of worthwhile and life-saving inventions."

    Continue reading
  • Declassified and released: More secret files on US govt's emergency doomsday powers
    Nuke incoming? Quick break out the plans for rationing, censorship, property seizures, and more

    More papers describing the orders and messages the US President can issue in the event of apocalyptic crises, such as a devastating nuclear attack, have been declassified and released for all to see.

    These government files are part of a larger collection of records that discuss the nature, reach, and use of secret Presidential Emergency Action Documents: these are executive orders, announcements, and statements to Congress that are all ready to sign and send out as soon as a doomsday scenario occurs. PEADs are supposed to give America's commander-in-chief immediate extraordinary powers to overcome extraordinary events.

    PEADs have never been declassified or revealed before. They remain hush-hush, and their exact details are not publicly known.

    Continue reading
  • Stolen university credentials up for sale by Russian crooks, FBI warns
    Forget dark-web souks, thousands of these are already being traded on public bazaars

    Russian crooks are selling network credentials and virtual private network access for a "multitude" of US universities and colleges on criminal marketplaces, according to the FBI.

    According to a warning issued on Thursday, these stolen credentials sell for thousands of dollars on both dark web and public internet forums, and could lead to subsequent cyberattacks against individual employees or the schools themselves.

    "The exposure of usernames and passwords can lead to brute force credential stuffing computer network attacks, whereby attackers attempt logins across various internet sites or exploit them for subsequent cyber attacks as criminal actors take advantage of users recycling the same credentials across multiple accounts, internet sites, and services," the Feds' alert [PDF] said.

    Continue reading

Biting the hand that feeds IT © 1998–2022