https://github.com/sillyhatxu/mini-mq
https://github.com/sillyhatxu/mini-mq
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sillyhatxu/mini-mq
- Owner: sillyhatxu
- Created: 2019-08-20T13:40:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-21T11:45:59.000Z (over 5 years ago)
- Last Synced: 2025-01-31T07:45:35.097Z (4 months ago)
- Language: Go
- Size: 86.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mini-mq
## sample
[consumer](https://github.com/sillyhatxu/mini-mq/blob/master/client/consumer/consumer_test.go)
[producer](https://github.com/sillyhatxu/mini-mq/blob/master/client/producer/producer_test.go)
[mini-mq-example](https://github.com/sillyhatxu/mini-mq-example)
## develop backups
### Initialize your project
```
dep init
```### Adding a dependency
```
dep ensure -add github.com/foo/bar github.com/foo/baz...dep ensure -add github.com/foo/[email protected] github.com/foo/baz@master
```### Updating dependencies
```
dep ensure -update github.com/sillyhatxu/logrus-clientdep ensure -update
```# Release Template
#### Feature
* [NEW] Support for Go Modules [#17](https://github.com/sillyhatxu/convenient-utils/issues/17)
---
#### Bug fix
* [FIX] Truncate Latency precision in long running request [#17](https://github.com/sillyhatxu/convenient-utils/issues/17)
###
```
git tag v1.0.2
git push origin v1.0.2
```### Initialize your project
```
go mod init github.com/sillyhatxu/mini-mq
```### Updating dependencies
```
go mod vendor
```### Upgrading dependencies
```
go get github.com/sillyhatxu/[email protected]
```### verify dependencies
```
go mod verify
```### remove dependencies that is not used
```
go mod tidy
```### print dependence diagram
```
go mod graph
```### download dependencies
```
go mod download
```# Release Template
#### Feature
* [NEW] Support for Go Modules [#17](https://github.com/sillyhatxu/convenient-utils/issues/17)
---
#### Bug fix
* [FIX] Truncate Latency precision in long running request [#17](https://github.com/sillyhatxu/convenient-utils/issues/17)
### 发布订阅(Publish/Subscribe)
> 使用sqlite做数据库
>
> 创建基础配置数据库和queue数据库
>
> grpc做数据交互
>
> config设置数据每次consume数量
>
> 批量提交(如何做到多个consume commit)
>
> 设置commit超时时间
>
>
>
>> https://github.com/grpc/grpc-go