承接上篇:上篇文章讲到改造 go-zero 生成的 app module 中的 gateway & RPC 。本篇讲讲如何接入 异步任务 以及 log的使用。 Delay Job 日常任务开放中,我们会有很多异步、批量、定时、延迟任务要处理,go-zero中有 go-queue,推荐使用 go-qu ...
分类:
其他好文 时间:
2021-02-02 10:46:15
阅读次数:
0
本文列举了消息队列RocketMQ常用的消息类型,以及使用这些消息类型的注意事项 ...
分类:
其他好文 时间:
2021-02-02 10:43:16
阅读次数:
0
字符串 @GetMapping("/string") public String stringTest(){ redisTemplate.opsForValue().set("str","Hello World"); String str = (String) redisTemplate.opsFo ...
分类:
其他好文 时间:
2021-02-01 12:45:42
阅读次数:
0
调研要求 在深入理解Linux内核任务调度(中断处理、softirg、tasklet、wq、内核线程等)机制的基础上,分析梳理send和recv过程中TCP/IP协议栈相关的运行任务实体及相互协作的时序分析。 编译、部署、运行、测评、原理、源代码分析、跟踪调试等 应该包括时序图 1.Linux内核任 ...
分类:
系统相关 时间:
2021-02-01 12:22:28
阅读次数:
0
字符串类型 声明变量 //声明字符串 String str1 = 'hello'; String str2 = 'dart'; //字符串拼接 print('$str1 $str2'); print(str1 + " " + str2); 属性 String str = 'hello world'; ...
分类:
其他好文 时间:
2021-02-01 12:21:53
阅读次数:
0
//位于js/compent.js中//compent.js 自定义layui模块 layui.define(function(exports){ var obj ={ hello:function(){ } } exports("compent",obj); //输出本模块的访问接口为compen ...
分类:
其他好文 时间:
2021-02-01 11:57:31
阅读次数:
0
前言 最近遇到了一个HTTP请求数据返回一个gz压缩包的问题,前前后后搞了3天,总算是把整个流程以及处理的细节搞明白了,总结一篇博客记录一下。 问题描述 获取某推广告成效数据的时候由于数据量很多,可能会导致Response数据量过大从而造成请求失败的问题。 某推服务方设计了这样一种方式:现将请求的到 ...
分类:
Web程序 时间:
2021-02-01 11:53:47
阅读次数:
0
我们称之为顶级层序 用 C# 编写一个简单的程序需要大量的样板代码,引用,类、方法、结构体等: 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 Console.WriteLine("Hello World!"); 6 7 } 8 ...
在vue创建项目时出现: vue : 无法加载文件 C:\Users\lwming\AppData\Roaming\npm\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_ ...
分类:
移动开发 时间:
2021-01-30 12:14:11
阅读次数:
0
复制文件 func CopyFile(dstFileName string,srcFileName string )(written int64,err error) { srcFile,srcErr := os.Open(srcFileName) if srcErr != nil{ fmt.Pri ...
分类:
其他好文 时间:
2021-01-30 12:10:15
阅读次数:
0