Code templates for socket s in Java

Java's socket code is written differently from C.The language's code is concise and deep, and Java is complex to write, but not so difficult to understand, so take a look at the template here to prevent future forgetting that there are four files, ServiceServer.java (for creating a socket server), ServiceTask.java (for services ...

Posted on Mon, 24 Feb 2020 11:11:50 -0500 by runeveryday

Learn spring cloud zuul from 0 to 1

1, Why use a gateway 2, Gateway entry case 1. Create project 1.1 add coordinates <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org ...

Posted on Mon, 24 Feb 2020 09:57:27 -0500 by james_cwy

Learn spring cloud ribbon from 0 to 1

1, The role of Ribbon in microservices 1. What is Ribbon 1.Ribbon is a client load balancing tool based on HTTP and TCP, which is implemented based on Netflix Ribbon 2. it is not deployed independently like the Spring Cloud service registry, configuration center and API gateway, but it exists in alm ...

Posted on Mon, 24 Feb 2020 09:23:14 -0500 by hasanpor

Knowledge required for Dockerfile

This paper mainly comes from: Dockerfile you have to know Part of. The introduction of this article is clear and comprehensive. Record the learning process. First of all, let's take a picture given in the original text, which is a good summary of several parts of a dockerfile: 2.1 FROM Indicates which ...

Posted on Mon, 24 Feb 2020 04:08:54 -0500 by tarado

Spark RDD creates API MySQL HBase

Generally speaking, each Spark application contains a Driver, which runs the user's main method and performs various parallel operations on the cluster. Spark provides the main abstract concept, which is the elastic distributed data set (RDD), which is an element divided across clusters Can be operated ...

Posted on Sun, 23 Feb 2020 06:15:35 -0500 by ramesh_iridium

Spring Boot integrates ActiveMQ

There are two main types of asynchronous messages in ActiveMQ: queue and topic. Queue is used for point-to-point message communication and topic is used for publish / subscribe message communication. ActiveMQ installation: Baidu online disk download: https://pan.baidu.com/s/1BNoOeiZ_Ry0oe-raEEVEmA Extra ...

Posted on Sun, 23 Feb 2020 04:36:02 -0500 by Orio

SaltStack common module 2

SaltStack common modules Article directory SaltStack common modules state of SaltStack common modules state.show_highstate state.highstate state.show_state_usage state.show_top state.top Salt CP of SaltStack common modules file of SaltStack common modules file.access file.append file.basename f ...

Posted on Sun, 23 Feb 2020 04:15:22 -0500 by Eugene

springboot web - start to create SpringApplication

1, Test code @SpringBootApplication public class SbmvcApplication { public static void main(String[] args) { SpringApplication.run(SbmvcApplication.class, args); } } My spring boot version here is 2.0.3.RELEASE <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/ ...

Posted on Fri, 21 Feb 2020 09:27:28 -0500 by ojeffery

spark Learning Journey: spark SQL

Article directory 1. Spark SQL overview 2. The relationship and difference of RDD, DataFrame and Dataset in spark 3. Overview of dataframe 3.1. [official api](http://spark.apache.org/docs/2.4.1/sql-getting-started.html) 3.2. Infer Schema by reflection 3.3. Specify Schema directly through StructType ...

Posted on Fri, 21 Feb 2020 04:49:14 -0500 by alohatofu

For four years in a row, it has become the "favorite language for developers". Have you ever understood this programming language?

fn main() { println!("hello rust");} With the launch of Facebook's Libra project, Rust became the biggest project in the history of Rust, but with the rise of global digital currency, the journey of Rust may be just beginning. Although you may not know much about Rust, in the eyes of developers, it's ...

Posted on Fri, 21 Feb 2020 02:37:33 -0500 by nebb