dubbo - integrate spring boot, simple annotation based instance

I. Guide Package: <dependencies> <dependency> <groupId>com.alibaba.boot</groupId> <artifactId>dubbo-spring-boot-starter</artifactId> <version>0.2.0</version> </dependency> <dependency> <groupId>org. ...

Posted by ricoche on Sun, 20 Oct 2019 09:25:06 -0700

Operating redis in go language

To use redis in go language, you need to download the official redis toolkit. Execute in the go path path: go get github.com/garden/redis/redisIf git is not installed, you can download a zip package from the following link, and then unzip it to the local gopath path path. If you don't know the path of gopath, look at the configuration parameter ...

Posted by launchcode on Sat, 19 Oct 2019 13:55:57 -0700

Service registration and discovery - Eureka (Service Management)

1. About Eureka; Eureka is a tool produced by Netflix for service registration and discovery. Spring Cloud integrates Eureka and provides out of the box support. Eureka can be subdivided into Eureka Server and Eureka Client. Eureka is a service discovery framework developed by Netflix. Spring Cloud supports it and integrates it into its own sp ...

Posted by douga on Sat, 19 Oct 2019 12:34:01 -0700

12 webpack auto compile code

Every time you need to compile your code, running npm run build manually becomes cumbersome. Use webpack-dev-server It can help you to compile code automatically when the code changes. It provides a simple web server and can be reloaded in real time. I. installation npm install --save-dev webpack-dev- ...

Posted by howler on Sat, 19 Oct 2019 10:20:23 -0700

GitLab+jenkins+docker release

Article directory Basic services Microservice provider Jenkins http://192.168.2.5:181/view/all/newJob Build a maven project HT micro record service note provider Add jenkins host public key to gitlab and generate global credentials 1.Username with password root/123456 2.SSH Username with private k ...

Posted by V34 on Fri, 18 Oct 2019 13:25:54 -0700

Java version of Spring Cloud B2B2C o2o social e-commerce - zuul gateway implementation

I. Introduction In spring cloud, zuul is used to implement the gateway function. The client's requests first go through the load balancing Ngnix, then to the service gateway (zuul cluster), and then to the specific services. Zuul's main functions are route forwarding and filter. Routing function is a part of microservice, such as / api/server1 ...

Posted by ConnorSBB on Fri, 18 Oct 2019 09:41:42 -0700

. Net TCP exploration - TCP server development (listening to multiple client requests at the same time)

Recently, I read the works written by the great God in the garden.( Interviewer, don't ask me three handshake and four wave again. )Can't help writing a program to test it. Many examples have been found on the Internet, most of which only implement TCP point-to-point communication, but in practical applications, a server port often listens to m ...

Posted by FeralReason on Fri, 18 Oct 2019 07:44:45 -0700

5. pytest Chinese document monkey patch

Catalog 1. Modify function function or class property 2. Modify environment variables 3. Modify dictionary Sometimes, the test case needs to call some functions that depend on the global configuration, or these functions themselves call some code that is not easy to test (for example, network access ...

Posted by sennetta on Fri, 18 Oct 2019 01:48:46 -0700

How to deploy WebSocket and gRPC services in Knight?

Author: Alibaba cloud container platform engineer, Dongdao **Guide reading: * * although it is said that Knative supports WebSocket and gRPC by default, it will be found in use that sometimes you want to deploy your own WebSocket or gRPC to Knative, but there are still many problems. Although the final investigation found that most of them ar ...

Posted by Thomisback on Thu, 17 Oct 2019 23:53:21 -0700

There's something wrong with the reptile

After the code optimization of golang climbing treasure net, the following error was reported. It took half an hour to find out the reason. Record here. The code is as follows: There is a Parser of type interface: type Parser interface { Parser(contents []byte, url string) ParserResult Serialize() (funcName string, args interface{}) } ...

Posted by robin105 on Thu, 17 Oct 2019 15:14:25 -0700