DZone.com Feed

DZone.com Feed


Bring Streaming to Apache Cassandra with Apache Pulsar

Posted: 10 Jul 2022 01:11 PM PDT

Twitch, YouTube, Instagram, Facebook — virtually every major brand nowadays uses live streaming to connect and engage their audience. For enterprises and developers building cloud-native applications, this growing trend creates a need for streaming technologies that can reliably handle the rush of massive amounts of data, while also being flexible and easy to manage for developers.

One such technology is Apache Pulsar® — an open-source, distributed messaging and streaming platform that's easy to deploy, simple to scale, and packed with developer-friendly APIs. So the next question is: how can you stream from Pulsar to Apache Cassandra®, the powerful NoSQL database designed to support data-heavy applications in the cloud?

Join our beginner-friendly Pulsar workshop on YouTube and learn how to connect Pulsar with Cassandra for streaming! In this post, we'll set the scene with an introduction to Pulsar and guide you through four hands-on exercises where you'll use these free, cloud-native technologies: Katacoda, Kesque, GitPod, and DataStax Astra DB. Each exercise will also be linked to the step-by-step instructions on the DataStax Developers GitHub wiki.

Enabling NFT Royalties With EIP-2981

Posted: 10 Jul 2022 11:33 AM PDT

With the finalization of the ERC721 standard, non-fungible tokens (NFTs) started receiving a large amount of attention. These provably unique assets are stored on the blockchain and introduce a new way to collect and trade art, music, profile pictures (PFPs), and more. In the summer of 2021, creating and selling NFTs became a quick way to accumulate wealth because of the boom in popularity.

However, when reading the underlying specification, you'll notice no functionality for acquiring and splitting royalties in either the ERC721 or ERC1155 standards. These standards only deal with ownership state tracking, approvals, and direct transfers.

Understanding JWT

Posted: 10 Jul 2022 11:09 AM PDT

Don't get fooled by too many articles out there that make JWT sound more complex and complicated than it actually is. In simple words, JWT is a simple format that aims to transfer claims between two parties in a  compact and secure manner. A claim is a key-value pair that asserts something about a subject. 

The diagram below will give you a very simple idea of how a JWT is layered. It is a set of claims as a JSON object, that is secured by a JWS (JSON Web Signature) or a JWE (JSON Web Encryption) layer.
how a JWT is layered

Captcha Implementation

Posted: 10 Jul 2022 10:33 AM PDT

CAPTCHA helps protect you from spam and password decryption by asking you to complete a simple test that proves you are human and not a computer trying to break into a password-protected account.

We can implement a captcha in Spring boot where a user can get an encoded image, and the corresponding readable captcha can be stored in the Database.

How Can You Benefit from Containerized Microservices?

Posted: 10 Jul 2022 10:13 AM PDT

Microservices architecture is transforming the face of the IT industry. In the upcoming years, most applications are going to be run on microservices. The service and product industry is ditching the use of monolithic architecture for more complex applications, and slowly but surely is transitioning towards microservices. Microservices' advantages, like agile development and architecture, enable businesses to roll out new features faster, making it the obvious choice. 

Containerization technology goes hand in hand with microservices architecture. Not only does it support virtualization, but it also works flawlessly under any OS environment. It's natural that the two technologies work synchronously with one another. What other benefits do containerized microservices holds that can be leveraged by businesses? Let's find out!

Prisoners of Retrospectives

Posted: 10 Jul 2022 10:01 AM PDT

There are plenty of failure possibilities with Scrum. Given that Scrum is a framework with a reasonable yet short "manual," this effect should not surprise anyone. What if, for example, not all of your Scrum team's members feel enthusiastic about the Sprint Retrospective, the critical event when the Scrum team inspects itself? How can you help them become dedicated supporters instead? Join me and delve into how to avoid teammates feeling like prisoners of Retrospectives in less than two minutes.

The Sprint Retrospective According to the Scrum Guide

According to the Scrum Guide 2020, Retrospectives allow a Scrum team to inspect itself and adapt its practices:

Building an IoT Security Camera With Raspberry Pi and Render

Posted: 10 Jul 2022 09:44 AM PDT

Most of the smart camera control systems available on the market are black boxes that we put in our homes. We don't really know what's going on inside them or how they're updated. While there might be some reliable vendors, we want to explore how to create our own smart camera control system. In doing so, we'll understand the fundamentals of IoT and potentially evolve this into a fully-fledged product.

In this article, we will walk through how to create a smart camera control system to secure your room. We'll cover the whole system and how to get it running:

Setting Up a Jenkins Instance With Configuration as Code (Using Yaml Configuration)

Posted: 10 Jul 2022 09:34 AM PDT

Sometimes we want visibility, and we want to keep track of how our Jenkins instance is configured and parameterized. 

Making these changes from the Jenkins UI is pretty straightforward, but on the other hand, we don't keep track of history changes, and we need to jump from one menu item to another to get the big picture of how the setup is as a whole.

How to Build a Full-stack App With Next.js, Prisma, Postgres, and Fastify

Posted: 10 Jul 2022 08:53 AM PDT

In this article, we'll learn how to build a Full-stack application using Next.js, Prisma, Postgres, and Fastify. We will build an attendance management demo application that manages employees' attendance. The flow of the app is simple: an administrative user logs in, creates an attendance sheet for the day, then every employee signs in and out of the attendance sheet.

What Is Next.js?

Next.js is a flexible React framework that gives you building blocks to create fast web applications. It is often called the full-stack React framework as it makes it possible to have both frontend and backend applications on the same codebase doing so with serverless functions.

What Is Prisma?

Prisma is an open-source, Node.js and Typescript ORM that drastically simplifies data modeling, migrations, and data access for SQL databases. At the time of writing this article, Prisma supports the following database management systems: PostgreSQL, MySQL, MariaDB, SQLite, AWS Aurora, Microsoft SQL Server, Azure SQL, and MongoDB. You might also want to click here to see the list of all supported database management systems.

Web Scraping as an API Service

Posted: 10 Jul 2022 08:18 AM PDT

Overview

In systems-to-systems integrations, there comes an inevitable time when we have to employ some kind of web scraping tool to integrate with a particular application. Despite its not being our first choice, it is good to know what to use at such a time - in this article, I provide a gentle introduction to my favourite tool of this kind, called Playwright, followed by sample Python code that integrates it with an API service.

Naturally, in the context of backend integrations, web scraping should be avoided and, generally, it should be considered the last resort. The basic issue here is that while the UI term contains the "interface" part, it is not really the "Application Programming" Interface that we would like to have.

Kubernetes Cluster Backups With Velero

Posted: 10 Jul 2022 07:52 AM PDT

Velero is an open-source backup and restoration tool for Kubernetes cluster disaster recovery. It also supports the migration of cluster resources and persistent volumes backup. Manual or scheduled backups to the external storage ensure your data safety and protection.

You can leverage Velero to achieve the following tasks:

How to Install SingleStoreDB in a Virtual Machine

Posted: 10 Jul 2022 07:50 AM PDT

Abstract

In this article, we'll see how to install SingleStoreDB in a Virtual Machine (VM) in a matter of minutes. Using a VM provides a no-risk, low-cost way to evaluate SingleStoreDB and gain immediate product knowledge and experience.

Introduction

SingleStoreDB can be deployed in various ways, such as on bare metal, in Virtual Machines, or in cloud-based environments. Full details of the different deployment options are described in the documentation. This article will show how to install SingleStoreDB in a VM.

Reading and Writing With a ConcurrentHashMap

Posted: 10 Jul 2022 07:24 AM PDT

ConcurrentHashMap provides a Map implementation with thread-safe read and write operations.

The Map and ConcurrentMap interfaces provide methods that ConcurrentHashMap takes advantage of to provide thread-safe interactions. Generally, I tend to solely really on the Map interface as it provides most of the same methods that ConcurrentMap has; however, depending on your use case, it might be beneficial to check out the ConcurrentMap methods yourself.

Comments

Popular posts from this blog

Digg

DZone.com Feed

DZone.com Feed