Giter Site home page Giter Site logo

godb's Introduction

重学Golang

能学到什么?

一步一步从零开始实现框架的编写 代码量少,学习编程思路,提高代码质量

用Go从零实现Web框架 - Gee Gee 是一个模仿 gin 实现的 Web 框架,Go Gin简明教程可以快速入门。

一:前置知识(http.Handler接口)

二:上下文设计(Context)

三:Trie树路由(Router)

四:分组控制(Group)

五:中间件(Middleware)

六:HTML模板(Template)

七:错误恢复(Panic Recover)

用Go从零实现分布式缓存 GeeCache GeeCache 是一个模仿 groupcache 实现的分布式缓存系统

一:LRU 缓存淘汰策略

二:单机并发缓存

三:HTTP 服务端

四:一致性哈希(Hash)

五:分布式节点

六:防止缓存击穿

七:使用 Protobuf 通信

用Go从零实现ORM框架 GeeORM

GeeORM 是一个模仿 gorm 和 xorm 的 ORM 框架

gorm 准备推出完全重写的 v2 版本(目前还在开发中),相对 gorm-v1 来说,xorm 的设计更容易理解,所以 geeorm 接口设计上主要参考了 xorm,一些细节实现上参考了 gorm。

一:database/sql 基础

二:对象表结构映射

三:记录新增和查询

四:链式操作与更新删除

五:实现钩子(Hooks)

六:支持事务(Transaction)

七:数据库迁移(Migrate)

用Go从零实现RPC框架 GeeRPC

GeeRPC 是一个基于 net/rpc 开发的 RPC 框架 GeeRPC 是基于 Go 语言标准库 net/rpc 实现的,添加了协议交换、服务注册与发现、负载均衡等功能,代码约 1k。

一 - 服务端与消息编码

二 - 支持并发与异步的客户端

三 - 服务注册(service register)

四 - 超时处理(timeout)

五 - 支持HTTP协议

六 - 负载均衡(load balance)

七 - 服务发现与注册中心(registry)

godb's People

Contributors

deeptechdiver avatar

Stargazers

ningchen avatar

Watchers

 avatar

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.