Giter Club home page Giter Club logo

hj24.github.io's Introduction

Hi there 👋

  • 🔭 2022.08 ~ now: I’m currently working on @Microsoft

  • 🚩 2022.03 ~ 2022.08: Backend Engineer (Global E-commerce) on @Bytedance

  • 🚩 2020.03 ~ 2022.03: Backend Engineer (Infra & SRE) on @Shanbay

  • 🌱 I’m currently learning SwiftUI

Languages

hj24.github.io's People

Contributors

hj24 avatar

Watchers

 avatar  avatar

hj24.github.io's Issues

进程线程和协程浅析

https://hj24.life/posts/%E8%BF%9B%E7%A8%8B%E7%BA%BF%E7%A8%8B%E5%92%8C%E5%8D%8F%E7%A8%8B%E6%B5%85%E6%9E%90/

不管考研还是工作,进程线程总是一个避免不了的问题,除此之外,协程也是高并发编程必备的技能 这篇博客照旧还是以问题为导向,如果看完能回答出下面这些问题,那么应该就初步掌握了这些点,剩下的部分就需要你不断code,不断深挖技术书籍,在实践中提升自己的理解:
进程、线程、协程有什么区别? 线程共享哪些进程资源,有哪些独立资源? 都说进程线程切换开销大,到底大在哪? 线程池是什么?它有什么作用? 你知道有哪些多进程和多线程的使用场景? 进程和进程之间,线程和线程之间怎么通信? Python和Golang的协程有什么区别? 搞完概念之后可以来试试code,这里有两道leetcode的线程题:
按序打印 交替打印FooBar

百宝袋

https://hj24.life/fav/

工具 redis 内存估算模型 json 转 go struct 工具 博客 kindjeff,扇贝同事 周而良,扇贝/云账房 倪震洋学长 小米有品Java工程师,高中学长 Django群友,腾讯实习 张佳园,PyConChina讲师

Snippets

https://hj24.life/snippets/

东拼西凑,存一些常用的代码片,持续更新 MySQL 找出所有执行时间超过 5 分钟的线程,拼凑出 kill 语句,方便后面查杀 SELECT CONCAT('kill ', id, ';') FROM information_schema.processlist WHERE Command != 'Sleep' AND Time > 300 ORDER BY Time DESC; Shell 截取有固定格式的长文本的第 n 列 cat example.txt|awk '{print $n}'

关于

https://hj24.life/about/

坐标南京 - 后端开发工程师 @扇贝网 永远也不知道怎么写的关于 你好,我是 hj24,不知道你是怎么来到这个博客的,但是非常欢迎你 👏 。 每当我点进一个博客的时候,我最喜欢看的就是关于界面,在这里我也许可以找到关于

GOMAXPROCES

runtime.GOMAXPROCES 不是用来设置P的数量的吗?为什么文章写的是M的数量?

Peewee连接kingshard时支持批量insert吗

https://hj24.life/posts/peewee%E8%BF%9E%E6%8E%A5kingshard%E6%97%B6%E6%94%AF%E6%8C%81%E6%89%B9%E9%87%8Finsert%E5%90%97/

kingshard 是一个用 Go 编写的高性能 Mysql 代理,使用它可以做到业务层面无感知的分库分表,它会自动在业务与数据库之间做好数据的分发与聚合。 显然,从官方文档来看,kingshard 是支持跨节点的批量 insert 操作的,原文如下:
支持非事务方式更新(insert, delete, update, replace)多个 node 上的子表
而 peewee 是 python 中一个微型 orm,不过因为小众,所以连接 kingshard 时发生一些奇怪的问题也很难找到前人踩的坑,所以本文就从搭建一套 kingshard 环境讲起,就验证 peewee 是否能成功在 kingshard 中跨节点批量 insert 做个记录。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.