Searching txt.sour.is

Twts matching #1:
Sort by: Newest, Oldest, Most Relevant
In-reply-to » Another day, another 5m outage 🤬

Wow. I’m paying about 100 USD for my cable internet. Hard to estimate since its part of a tvd bundle. But it is 1.2Gbit down and 40Mbit up. And speed tests at that on the regular. The new house will have FTTH gigabit for 80ish.

Do they have Starlink beta down there yet?

⤋ Read More
In-reply-to » Another day, another 5m outage 🤬

Wow. I’m paying about 100 USD for my cable internet. Hard to estimate since its part of a tvd bundle. But it is 1.2Gbit down and 40Mbit up. And speed tests at that on the regular. The new house will have FTTH gigabit for 80ish.

Do they have Starlink beta down there yet?

⤋ Read More

GoCN 每日新闻 (2022-01-21)
GoCN 每日新闻 (2022-01-21)

  1. stream: go 语言并发通信设计模式的泛型实现https://github.com/devnw/stream
  2. 一个比” ldflags” 更好的方式来添加构建版本号到 go 二进制的方式:https://levelup.gitconnected.com/a-better-way-than-ldflags-to-add-a-build-version-to-your-go-binaries-2258ce419d2d
  3. 怎么处理 HTTP 错误” context canceld”[https://www.reddit.com/r/golang/comments/s7o5ay/investigating_context_canceled_http_err … ⌘ Read more

⤋ Read More

TiDB 在国信证券海量数据高并发场景中的实践
作者介绍

陈培新,参与国信证券基础平台研发工作(DevOps、微服务治理、Serverless)

国信证券是一家全国性大型综合类证券公司,在 118 个城市和地区共设有 57 家分公司、185 家营业部,根据中证协发布的数据,近年来国信证券的总资产、净资产、净资本、营业收入、净利润等核心指标排名行业前列。

国信证券从 2020 年 6 月开始接触 TiDB,从技术预研到第一个业务上线大约花了半年时间。第一个上线的业务是金太阳帐单,后面陆续在数据中台、服务观测等系统中应用。从只在东莞主机房的 TiDB 部署到 2021 年 9 月实现 TiDB 多机房的部署,并启动国产海光 x86 服务器的试点工作,国信证券在开源 NewSQL 数据库的探索和应用层面,积累了丰富的实践经验。目前, 国信证券共有 7 个 TiDB 集群,节点数量 109 个,最大表 100 亿,支撑了托管、经纪和自营等业务。

从 0 到 1,国信金太阳引入 TiDB

国信金太阳提供证券交易、理财和资讯相关的服务。我们使用证券软件最主要的功能就是交易,在做交易的时候会比较关注收益率以及什么时候买卖股票。当前国信金太阳的 … ⌘ Read more

⤋ Read More

引领中国分布式数据库企业技术创新力,平凯星辰获得赛迪顾问报告推荐
近日,赛迪顾问正式发布《2021 中国分布式数据库最具成长价值企业研究报告》, 报告从技术创新力和市场影响力两个维度对中国分布式数据库创新企业进行评估,平凯星辰在技术创新力的维度排名第一

Image

在此份研究报告中,赛迪顾问针对分布式数据库技术发展趋势,调研了十多家分布式数据库企业,通过问卷的收集整理了上千条信息和数据,结合 新型创新企业的经济效益、社会影响力和技术创新能力 等三大维度,建立分布式数据库创新指标评价体系,旨在挖掘一批国内最具成长价值的分布式数据库企业,并针对企业、用户及投资机构需求,提出一定建议。
报告指出,平凯星辰将开源作为长期核心战略,坚信开源是当今基础软件领域取得世界范围内成功的最佳路径。目前 TiDB 项目在 GitHub 上已总计获得超过 30,000+ 颗星,累计超过 1600 位开源贡献者,是全球数据库活跃度排名前三的开源项目,也是中国排名前 … ⌘ Read more

⤋ Read More

GoCN 每日新闻(2022-01-20)

  1. 从 CPU 角度理解 Go 中的结构体内存对齐https://gocn.vip/topics/20967
  2. 博客 Go beyond workhttps://changelog.com/gotime/212
  3. 如何绘制随时间变化的 Go 测试覆盖率https://osinet.fr/go/en/articles/plotting-go-test-coverage/
  4. Redix v5 一个简单的 KeyValue 存储系统https://github.com/alash3al/redix?_v=5.0.0
  5. 既然 IP 层会分片,为什么 TCP 层也还要分段[https://mp.weixin.qq.com/s/0boFt8cOAbmjH2IRr7XtY … ⌘ Read more

⤋ Read More

从 CPU 角度理解 Go 中的结构体内存对齐
大家好,我是 Go 学堂的渔夫子。今天跟大家聊聊结构体字段内存对齐相关的知识点。

原文链接: https://mp.weixin.qq.com/s/H3399AYE1MjaDRSllhaPrw

大家在写 Go 时有没有注意过,一个 struct 所占的空间不见得等于各个字段加起来的空间之和,甚至有时候把字段的顺序调整一下,struct 的所占空间又有不同的结果。

本文就从 cpu 读取内存的角度来谈谈内存对齐的原理。

01 结构体字段对齐示例

我们先从一个示例开始。T1 结构体,共有 3 个字段,类型分别为 int8,int64,int32。所以变量 t1 所属的类型占用的空间应该是 1+8+4=13 字节。但运行程序后,实际上是 24 字节。和我们计算的 13 字节不一样啊。如果我们把该结构体的字段调整成 T2 那样,结果是 16 字节。但和 13 字节还是不一样。这是为什么呢?

”`
type T1 struct {

f1 int8  // 1 byte
f2 int64 // ... ⌘ [Read more](https://gocn.vip/topics/20967)```

⤋ Read More

** A quick and dirty intro to the .pbm file format **
I’ve been fiddling with writing programs that draw pictures. I started with PostScript for this, but have since moved to writing programs that output in the .pbm format.

My goal here is to write noise to a .pbm file.

A .pbm file is the lowest common denominator among image file formats.

An example of the format,

”`hljs plaintext
P1

comment describing the file

5 5
1 0 1 0 1
0 1 0 1 0
1 0 1 … ⌘ Read more”`

⤋ Read More

GoCN 每日新闻(2022-01-19)

GoCN 每日新闻(2022-01-19)
  1. Go1.18 新特性:多 Module 工作区模式https://mp.weixin.qq.com/s/Aa9s_ORDVfzbj915aJD5_w
  2. Go 中的可视化 - 绘制股票信息https://www.ardanlabs.com/blog/2022/01/visualizations-in-go.html
  3. 带你彻底击溃跳表原理及其 Golang 实现!(内含图解) https://mp.weixin.qq.com/s/5wrHQz_LqeQn3NLuF8yu0A
  4. go-zero 对接分布式事务 dtm 保姆式教程[https://github.com/Mikaelemmmm/gozerodtm](h … ⌘ Read more

⤋ Read More

只有天空才是你的极限,我们热爱探索的过程并沉浸其中丨图数据库 TiMatch 团队访谈
只有天空才是你的极限,我们热爱探索的过程并沉浸其中

Hackathon 本身带给我们的是一次全新的探索,并不只是一队人有一个明确的目标,花几天时间写代码,那其实是很无聊的。探索的本身让我们发现,越探索越能找到更新、更好、更优雅的解决办法,我们热爱这个探索的过程并沉浸其中…… —— TiMatch 赛队

Image

战队成员之一柏佳辰是一个爱画画、爱摩托车、喜欢读《理想国》,建筑学出身的程序员。

在 TiDB Hackathon 2020 赛事中,TiGraph 项目在 TiDB 中实现了一套新的 Key-Value 编码来引入图模式,处理传统关系型数据库难以覆盖的图数据分析场景,实现了 TiDB 在四度人脉的计算性能大幅提升,夺得了二等奖。

在刚刚收官的 TiDB Hackathon 2021 赛事中,TiMatch 在去年项目的基础上做了一次进化升级 … ⌘ Read more

⤋ Read More

GoCN 每日新闻(2022-01-18)

  1. 超实用教程!一探 Golang 怎样践行 Clean Architecture?https://www.tuicool.com/articles/fiuQZvz
  2. Uber:大规模、半自动化 Go GC 调优https://mp.weixin.qq.com/s/XithQarYmXHbPhtVzhNm-w
  3. Go 耗费 12 年才引入泛型,是政治,还是技术问题?https://www.tuicool.com/articles/bINJvyr
  4. Pulsar vs Kafka?一文掌握高性能消息组件 Pulsar 基础知识https://segmentfault.com/a/1190000041297325
  5. Go Errors 详解[h … ⌘ Read more

⤋ Read More

[上海] 上海鑫农物联科技有限公司招聘 golang 工程师
上海鑫农物联科技有限公司成立于 2020 年 3 月份,是国家 863 软件园 (上海基地) 2020 年重点孵化项目,是由原霍尼韦尔 “智慧农业” 项目的两位创始人共同创立的互联网农业高科技公司,简称 “鑫农物联”。该 “智慧农业” 项目是霍尼韦尔从 2016 年至 2019 年间在中国孵化的几十个创新项目中最成功的。
鑫农物联成员绝大多数来自于霍尼韦尔,拥有深厚扎实的工业互联网、物联网、云计算、大数据、人工智能等技术背景;同时与多位资深农业专家和新媒体数据运营专家通力合作。
鑫农物联把霍尼韦尔国际领先的工业互联网技术与产品运用到农业生产中,同时集成国内外先进的农业生产设备,为满足中国农业种植、养殖和农产品销售发展的迫切需要,而致力于提供智慧种植、智慧养殖和农业数据运营三大垂直领域解决方案的设计、推广与实施。
鑫农物联致力于 “赋能农企和农户,帮助他们更成功” 为使命,专注于 “科技服务” 和 “技术赋能”。

岗位职责:

  1. 参与物联网平台服务端架构设计;
  2. 负责物联网平台服务端相关接口开发和维护;
  3. 完成部分 devops 相关工作;

任职要求:

  1. 熟练掌握 golang 语言;
    2 … ⌘ Read more

⤋ Read More

GoCN 每日新闻 (2022-01-18)
GoCN 每日新闻 (2022-01-18)

  1. GoFrame 框架: 快速创建静态文件下载 Web 服务https://my.oschina.net/u/4955601/blog/5400313
  2. Kubernetes HPA 基于 Prometheus 自定义指标的可控弹性伸缩https://my.oschina.net/u/5110404/blog/5401779
  3. 面试官提问三个 Go 接口的概念, 10 年 gopher 竟无言以对https://colobu.com/2022/01/16/three-new-concepts-of-go-interface-since-1-18/
  4. chaos-mesh: K8s 的 Chaos 工程平台[htt … ⌘ Read more

⤋ Read More

GoCN 每日新闻 (2022-01-16)

GoCN 每日新闻 (2022-01-16)
  1. Golang 1.18 官方 Tutorial: 开始使用泛型https://juejin.cn/post/7053427624902656030
  2. 使用 Go 语言从 0 到 1 实现一个 CNI 插件https://mp.weixin.qq.com/s/lUsRww74DZlRU3vTYbfFbQ
  3. 深入浅出 Golang 资源嵌入方案:前篇https://mp.weixin.qq.com/s/1wlaGMXvk_uGGjAr7BjjlQ
  4. Go 静态编译机制https://juejin.cn/post/7053450610386468894
  5. Golan … ⌘ Read more

⤋ Read More

GoCN 每日新闻 (2022-1-15)

  1. https://jogendra.dev/writing-maintainable-go-code Writing maintainable Go code
  2. https://mp.weixin.qq.com/s/h8vhy8IJKnA8aNbTlCoQtg 理解 go 中空结构体的应用和实现原理
  3. https://juejin.cn/post/7053109648223633438 Go 并发写 map 产生错误能够通过 recover() 恢复吗?
  4. [https://soulteary.com/2022/01/15/explain-the-golang-resource-embedding-solution-part-1.html](https://soulteary.com/2022/01/15/exp … ⌘ Read more

⤋ Read More

Netflix Raises Monthly Subscription Prices in US, Canada
Netflix has raised its monthly subscription price by $1 to $2 per month in the United States depending on the plan, the company said on Friday, to help pay for new programming to compete in the crowded streaming TV market. From a report: The standard plan, which allows for two simultaneous streams, now costs $15.49 per month, up from $13.99, in the Unite … ⌘ Read more

⤋ Read More

GoCN 每日新闻(2022-01-14)

  1. 《Go 组件设计与实现》-netpoll 的总结https://www.cnblogs.com/codexiaoyi/p/15798780.html
  2. Uber 對 Golang GC 的調整https://blog.gslin.org/archives/2022/01/13/10503/uber-%e5%b0%8d-golang-gc-%e7%9a%84%e8%aa%bf%e6%95%b4/
  3. 基于 etcd 实现大规模服务治理应用实战https://mp.weixin.qq.com/s/zOZrCNZ9X6IyKxzRMeReWg
  4. 勒索软件正在用 Go 重写,用于联合攻击 Window … ⌘ Read more

⤋ Read More

GoCN 每日新闻 (2021-12-31)

  1. 快速了解 “小字端” 和 “大字端” 及 Go 语言中的使用https://developer.51cto.com/art/202112/697505.htm
  2. Golang 与非对称加密https://www.ssgeek.com/post/golang-yu-fei-dui-cheng-jia-mi
  3. 一文搞懂 Docker、Containerd、RunC 间的联系和区别https://mp.weixin.qq.com/s/kVh_EXGeMy_UI6qIgbmsGQ
  4. Golang 项目的配置管理——Viper 简易入门配置[https://www.cnblogs.com/Mrxuexi/p/15750455.html](https://www.cnblogs.com … ⌘ Read more

⤋ Read More

GoCN 每日新闻 (2022-01-13)
GoCN 每日新闻 (2022-01-13)

  1. Golang《基于 MIME 协议的邮件信息解析》部分实现https://gocn.vip/topics/20948
  2. 泛型可以拯救 Golang 笨拙的错误处理吗?https://blog.dnmfarrell.com/post/can-generics-rescue-golangs-clunky-error-handling/
  3. 更多的并行,并不等同更高的性能https://convey.earth/conversation?id=44
  4. 为什么 Go 有两种声明变量的方式,有什么区别,哪种好? [https://mp.weixin.qq.com/s/ADwEhSA1kFOFqzIyWvAqsA](https://mp.weixin.q … ⌘ Read more

⤋ Read More

Go 分布式令牌桶限流 + 兜底策略
上篇文章提到固定时间窗口限流无法处理突然请求洪峰情况,本文讲述的令牌桶线路算法则可以比较好的处理此场景。

工作原理
  1. 单位时间按照一定速率匀速的生产 token 放入桶内,直到达到桶容量上限。
  2. 处理请求,每次尝试获取一个或多个令牌,如果拿到则处理请求,失败则拒绝请求。

Image

优缺点

优点

可以有效处理瞬间的突发流量,桶内存量 token 即可作为流量缓冲区平滑处理突发流量。

缺点

实现较为复杂。

代码实现

core/limit/tokenlimit.go

分布式环境下考虑使用 redis 作为桶和令牌的存储容器,采用 lua 脚本实现整个算法流程。

redis lua 脚本


<span class="c1">-- 每秒生成token数量即token生成速度</span>
<span class="kd">local</span> <span class="n">rate</span> <span cl ... ⌘ [Read more](https://gocn.vip/topics/20950)

⤋ Read More

Go 模糊测试

从 Go 1.18 版本开始,标准工具集开始支持模糊测试。

概述

模糊测试(Fuzzing)是一种自动化测试方法,通过不断地控制程序输入来发现程序错误�� … ⌘ Read more

⤋ Read More

hconfig 一个可插拔的 Golang 配置管理工具 支持(etcd/k8s(kubernetes)/apollo)

hconfig 一个可插拔的 Golang 配置管理工具 支持(etcd/k8s(kubernetes)/apollo) 什么是可插拔式程序
  • 一个统计的可插拔内核
  • 各个组件相互独立
可插拔式程序
  1. 在设计一个可插拔式程序时我们应该想到的是怎么把我们的需求给实现了,然后我们再搞一波抽象(统计的可插拔内核

不同的模块只要实现了� … ⌘ Read more

⤋ Read More

Switching to Purelymail
After long consideration, I have now moved email for all but my main domain (but that’s coming too) to Purelymail. Email without bullshit. And with the “Advanced billing mode” they really only charge by usage or $10 per year with the “Simple billing”, but even with Advanced that shouldn’t be much more than $1 per month for me. ⌘ Read more

⤋ Read More

Switching to Purelymail
After long consideration, I have now moved email for all but my main domain (but that’s coming too) to Purelymail. Email without bullshit. And with the “Advanced billing mode” they really only charge by usage or $10 with the “Simple billing”, but that shouldn’t be much more than $1 per month for me. What I like most is that there is no unnecessary limit on the number of users, aliases or custom domains. 👍 ⌘ Read more

⤋ Read More

Ignite Realtime Blog: Openfire 4.5.6 is released
Openfire 4.5.6 has been released, that addresses an annoying issue that was affecting the earlier 4.5.5 release. We’ve updated the bundled log4j library to version 2.17.1 for good measure.

The changelog denotes the two Jira issues closed by this release. You can find Openfire build artifacts available for download [here](https://github.com/igniterealtime/Openfire/rel … ⌘ Read more

⤋ Read More

GoCN 每日新闻(2022-01-04)

GoCN 每日新闻(2022-01-04)
  1. 「GoCN 酷 Go 推荐」go 语言位操作库 — bitsethttps://mp.weixin.qq.com/s/UcuKgKnt4fwrg3c-UHc3sw
  2. Go 通过 Map/Filter/ForEach 等流式 API 高效处理数据https://mp.weixin.qq.com/s/7ATm_Zu7ib9MXf8ugy3RcA
  3. 优化 Go 二进制文件的大小[https://prog.world/optimizing-the-size-of-the-go-binary](https://prog.world/optimizing-the-si … ⌘ Read more

⤋ Read More

What’s new in dubbo-go-pixiu 0.4.0
Dubbo-go-pixiu 是一款高性能 API 网关,支持 Dubbo 和 Http 等多种协议。具体介绍文章可以参考 《Dubbo 跨语言调用神兽:dubbo-go-pixiu》

近期社区发布了 0.4.0 版本,具体请查看 v0.4.0。相关改进实在太多,本文只列出相关重大 feature、bugfix 、 性能提升项。

1 动态从 Spring Cloud 和 Dubbo 注册中心拉取路由和集群配置数据

Pixiu 原本依赖本� … ⌘ Read more

⤋ Read More

潘娟:Keep open,Stay tuned 开源为我打开的全新世界 | TiDB Hackathon 2021 评委访谈
距离 2022.1.8-9 比赛日,已不到两周时间,想必各位参赛选手已经摩拳擦掌,开始准备自己的项目了。\
在等待最终比赛日的这段时间,TiDB 社区采访了本届 Hackathon 中的一位女性评委,她在数据库领域中耕耘多年,从 DBA 到创业者,具有着传奇色彩的人生经历。\
我们通过访谈记录了她对开源的理解与感悟,同时探讨 Hackathon 活动的� … ⌘ Read more

⤋ Read More

Ignite Realtime Blog: Openfire 4.6.7 released (Log4j 2.17.1 only change)
Openfire 4.6.7 has been released with only a single change to bump the bundled log4j library to version 2.17.1. Whilst we do not believe Openfire to be vulnerable to the CVEs associated with the log4j 2.17.0 and 2.17.1 releases, we realize that many folks are running naive security scanners that are simply checking for bundled jar versions.

The [changelog](https://download.igniterealtime.org/open … ⌘ Read more

⤋ Read More

GinAdmin 后台管理模板

GinAdmin

这个项目是以 Gin 框架为基础搭建的后台管理平台,虽然很多人都认为 go 是用来开发高性能服务端项目的,但是也难免有要做 web 管理端的需求,总不能再使用别的语言来开发吧。所以整合出了 GinAdmin 项目,请大家多提意见指正!欢迎 star ⭐⭐

Image

Image

依赖
  • golang > 1.8
  • Gin
  • BootStrap
  • LayUi
  • WebUpload
  • [Light Year Admin Using Ifra … ⌘ Read more

⤋ Read More

go 语言位操作库 bitset
bitset库 实现了 bitsets 数据结构,这是一种正整数和布尔值映射关系的结构,它比 map[uint]bool 更高效

什么是 bitsets

bitsets 基本思想是用一个 bit 位来标记某个元素对应的 Value,每一位表示一个数,1 表示存在,0 表示不存在
比如我要表示 1, 3, 7 这 3 个数

  1. 构造一个空白 bitsets:00000000
  2. 每位代表的值如下:76543210
  3. 想要表示的值标记 1:10001010
有什么好处?

�� … ⌘ Read more

⤋ Read More