Build a single-node Hadoop from sketch

  Dependent environment First need java support Download the 1.8 version of jdk After downloading, decompress, and declare JAVA_HOME in the environment variable After saving, use the source command to make the environment variable take effect Download the hadoop file In this post, we will be using version 2.10. Unzip to the directory you want to place in… Read More »

Implementing High-availability Architecture Using Docker and Rancher | Step-by-step Instructions

The current development situation in the technological world is to free developers from tedious application configuration and management, use container images to handle complex program operation-dependent library requirements, and ensure the consistency of the code operating environment. Since the benefits of this are so clear, why doesn’t the infrastructure environment in the enterprise switch to container clusters? The… Read More »

Introducing 8 Component Communication Mechanisms in Vue.Js | Vue.Js Interview Questions

  This post will summarize 8 component communication mechanisms in Vue.Js. The daily development of component communication is close, and familiarity with component communication can better develop business. Vue.js Passing values between components 1. The parent component passes the value to the child component Generally, this involves the following procedures: Introduce child components in parent components Register subcomponents… Read More »

Getting Started with ActiveMQ 5

This article mainly records the configuration and writing process of ActiveMQ from installation to application to the project. You quickly configure the application following this post. You can download ActiveMQ from its official website. Modify the configuration First, find the activemq.xml file in the config directory. Then, find the <policyEntries> tag, add the following configuration under the tag… Read More »

Best practices of developing SpringCloud-based microservices

Nowadays, SpringCloud-based microservice development is becoming more and more popular, and various open-source projects on the Internet are emerging endlessly. We can refer to open source projects to implement many out-of-the-box functions in actual work, but we must abide by certain conventions and specifications. This post combines some of the problems encountered in our actual development to sort… Read More »

Pika Cluster Horizontal Scaling: Unlimited Performance

Background Pika is a persistent large-capacity redis storage service, compatible with most of the interfaces of string, hash, list, zset, and set (compatibility details), and solves the capacity bottleneck of redis that is insufficient due to the huge amount of stored data. Users can migrate from redis to pika service without modifying any code. It has good compatibility… Read More »

SOLID principles: Introduction, Best Practices, and Interview Questions and answers

SOLID principle introduction Following practical and clear design principles is conducive to flexible and reliable software design. SOLID is an acronym for the five essential principles of object-oriented design. When we design classes and modules, following the SOLID principles can make the software more robust and stable. Q1: What are the SOLID principles? S – Single responsibility principle… Read More »

Use R2DBC with MySQL database

Introduction R2DBC is an asynchronous, non-blocking relational database connection specification. Although some NoSQL database vendors provide reactive database clients for their databases, for most projects, migrating to NoSQL is not an ideal choice. This prompted the birth of a universal, responsive relational database connection specification. As a relational database with a huge user base, MySQL also has a… Read More »

Best practices of implementing pagination for one-to-many results in SQL

Introduction One-to-many results paging is a prevalent scenario, for example, we want to query the product and product picture information. But many people will encounter the misunderstanding of paging here and get incorrect results. Come to analyze and solve this problem today. Problem analysis Let’s first create a simple commodity table and the corresponding commodity picture relationship table.… Read More »

How to avoid double payments and ensure idempotency in a distributed web application with Spring Boot

Idempotency Idempotency means that no matter how many times you execute the request, the result is the same. Speaking of idempotency, you have to say repeated submission. You click the submit button continuously. In theory, this is the same piece of data. The database should only store one item but store multiple items, which violates idempotency. Therefore, we… Read More »