使用MQ的三大作用:1、同步变异步2、流量削峰3、解耦降低服务间的耦合性要不要使用MQ,需不需要使用MQ依据项目的需要做选择。 使用场景: 例如:注册用户时候,发送激活邮件。监控应用中抛出的异常,邮件通知管理员。也就是增加监控功能,且一个消息服务可以监控无数个应用。异构型架构系统间的各服务通信,因为 ...
分类:
其他好文 时间:
2020-06-01 11:43:45
阅读次数:
64
//龟兔赛跑public class Race implements Runnable{ private static String winner; @Override public void run() { for (int i = 0; i <= 100 ;) { //模拟兔子休息 if (Th ...
分类:
编程语言 时间:
2020-05-31 21:29:04
阅读次数:
92
1049 Counting Ones (30分) The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of th ...
分类:
其他好文 时间:
2020-05-29 23:43:50
阅读次数:
106
Linux(五):Ubuntu 16.04 更改系统语言为简体中文(Chinese simplified) 1 问题 说明1:安装的时候,出现Could not install the full language support org. freedesktop. PolicyKit. Error. ...
分类:
编程语言 时间:
2020-05-29 21:43:46
阅读次数:
413
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # Date : xxxx-xx-xx # # Author : Created by zhouwanchun. # # Wechat : loveoracle11g # # Function: Th ...
分类:
数据库 时间:
2020-05-29 19:47:31
阅读次数:
103
题目如下: A happy string is a string that: consists only of letters of the set ['a', 'b', 'c']. s[i] != s[i + 1] for all values of i from 1 to s.length - ...
分类:
移动开发 时间:
2020-05-29 10:03:22
阅读次数:
64
删除链表中倒数第n个结点 题目:LeetCode19 Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4- ...
分类:
其他好文 时间:
2020-05-29 09:26:32
阅读次数:
50
HTML:TR TD TH OL UL LI 什么是HTML 超文本标记语言(HyperText Markup Language),标准通用标记语言下的一个应用; 是网页制作必备的编程语 言 “超文本”就是指页面内可以包含图片、链接,甚至音乐、程序等非文字元素。 HTML 不是一种编程语言,而是一种 ...
分类:
Web程序 时间:
2020-05-27 18:46:21
阅读次数:
248
Have Ktag to remap 2010 Golf GTI MK6 with Bosch MED17.5 ECU. This article is available with the procedure. Open ECU… Connect the wires by following th ...
分类:
其他好文 时间:
2020-05-27 15:36:04
阅读次数:
61
POJ 2104 K-th Number 题意:给出一段数列,让你求[L,R]区间内第k大的数字 #include <cstdio> #include <cstring> #include <iostream> #include <vector> #include <algorithm> using ...
分类:
其他好文 时间:
2020-05-26 22:13:05
阅读次数:
76