Patterns Matching and Sample Classes of spark Notes

Level has a very powerful pattern matching mechanism, which can be applied to many occasions, such as switch statements, type checking and so on. Level also provides sample classes to optimize pattern matching, which can quickly match.1.1. Matching string package cn.itcast.cases import scala.util.Random   object CaseDemo01 extends App{   v ...

Posted on Thu, 22 Aug 2019 00:15:15 -0700 by atsphpflash

Virtual Machine Builds kafka Cluster (Center OS 7)

Operating system: center os 7 Software: jdk8, zookeepe-3.5.5, Kafka 2.2.0 zookeeper cluster deployment: https://blog.csdn.net/DavidSoCool/article/details/96431181 kafka Download Address: https://www.apache.org/dyn/closer.cgi?path=/kafka/2.2.0/ ...

Posted on Tue, 20 Aug 2019 22:38:42 -0700 by ju8ular1

Introduction to the First Experience of RPC Framework

Introduction to the First Experience of RPC Framework Project address: https://github.com/shirukai/learn-demo-rpc.git RPC is called Remote Procedure Call. As its name implies, remote procedure call means remote procedure call. For an introduction ...

Posted on Thu, 15 Aug 2019 03:09:04 -0700 by walexman

A Preliminary Understanding of Spring Cloud

I. Basic Description of MicroService Reasons for MicroService Architecture: Solving the shortcomings of single application framework. Monolith framework: The project organization in which all code and functions are included in a WAR package is called Monolith. Disadvantages of Monolith framework: Compiling, deploying and testing are difficu ...

Posted on Tue, 13 Aug 2019 05:14:29 -0700 by fellixombc

Kafka Official Document Notes

Articles Catalogue Overview of Kafka Goal 1: Deploy and use a single node, single Broker Goal 2: Deploy and use single-node multi-Broker Goal 3: Kafka API programming--Producer end development Goal 4: Kafka API programming--Consumer development Goal 5: Kafka API Programming -- Integrating Flume to A ...

Posted on Sun, 11 Aug 2019 22:54:48 -0700 by jsbrown

zookeeper--Implementing Distributed Lock

1: Multithreading The characteristic of java language is multithreading, of course, there will be corresponding challenges under the advantages. In multithreading environment, thread security becomes a problem that developers must avoid. When a thread shares a variable, according to the memory model, each thread has its own local memory, and t ...

Posted on Mon, 05 Aug 2019 19:47:44 -0700 by ph3n0m

dubbo+zookeeper sample record

Tip: To see the example directly, skip to three 1. Development of project architecture Traditional mvc architecture projects write the entire system functionality into one project and deploy it on one machine. As the number of users increases, a single project server cannot withstand a surge of user requests and needs to increase the number o ...

Posted on Wed, 24 Jul 2019 09:54:57 -0700 by majocmatt

prometheus Remote Storage--kafka

prometheus remote storage Configuration of experimental system mac 10.14 docker Engine: Version: 18.09.2 API version: 1.39 (minimum version 1.12) Go version: go1.10.6 Git commit: 6247962 Built: Sun Feb 10 04:13:06 2019 OS/Arch: linux/amd64 Experimental: false Deploying pseu ...

Posted on Sun, 21 Jul 2019 23:54:53 -0700 by Paulus Magnus

Problems and Solutions of redis Distributed Locks

Problems and Solutions of redis Distributed LocksDistributed LockIn distributed environment, in order to ensure normal access to business data and prevent duplicate requests, distributed locks are used to block subsequent requests. Let's start with a piece of problematic business code: Copy code public void doSomething(String userId){ User ...

Posted on Sat, 20 Jul 2019 21:37:59 -0700 by freeak08

How do I implement distributed ID s using MongoDB+Springboot?

How do I implement distributed ID s in SpringCloud distributed systems using MongoDB? 1. Background How to implement distributed IDS and search for relevant data will generally give you these solutions: Use database self-incrementing Id Use reids incr command Use UUID snowflake algorithm for Twitter Generating unique ID s using zookeeper Objec ...

Posted on Wed, 10 Jul 2019 10:19:49 -0700 by Bendude14