收集golang学习和日常工作会用到的相关资料
面向生活编程,每天开心最重要!
各种技术,能解决问题的都是技术
收集golang学习和日常工作会用到的相关资料
Google Apps 是一系列谷歌应用的集合,也就是 Gmail/ Calendar/Drive/Docs/Sheets/Forms等等。
你可以通过javascript使用google定义的类来自定义google app或者自动化。
什么是幂等 多次调用同一方法或者接口不会改变业务状态,可以保证重复调用的结果和单次调用的结果一致。 接口幂等能解决什么问题 前端重复提交 接口超时重试 消息重复消费 解决方案 token机制: 客户端从服务端获取token,然后发送指定请求,服务端将生成的token放入redis 客户端携带token去做业务请求,服务端判断token是否在redis中,不在则拒绝,在则删除token(或者给打个标识),并进行业务处理 该token是全局唯一的,可以使用一个全局的id生成服务来生成(snowflake算法的一个变种) 基于mysql的实现 利用mysql的唯一索引,只有在负载比较小的情况下,才合适 mysql的悲观锁 `select * from xxx where id = ‘xx’ for update; 需要注意使用主键或者唯一索引,否则锁表。…
题目 Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a solution with a linear runtime complexity and use only…
Given an array, rotate the array to the right by k steps, where k is non-negative.
题目 You are given an array prices where prices[i] is the price of a given stock on the ith day. Find the maximum profit you can achieve. You may complete as…
题目 Given an integer array nums, move all 0‘s to the end of it while maintaining the relative order of the non-zero elements. Note that you must do…
Https加密使用了对称加密、非对称加密、数字证书和数字签名等加密技术。
Load balancer的作用是管理客户请求,并根据算法,将请求分发到不同的后端服务上。目的都是从整体上提高系统的资源利用率。
tcp是基于连接的可靠传输方式,主要依赖于三次握手、传输确认和四次挥手。