上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 49 下一页
摘要: nats-streaming目前已经淘汰了,最新版本安装可以看我的其他文章 https://www.cnblogs.com/qcy-blog/p/18409663 Support Docker-Compose Deploy nats + nats-streaming 集群方案 1 通过nats + 阅读全文
posted @ 2024-08-31 17:33 朝阳1 阅读(214) 评论(0) 推荐(0)
摘要: 以下是redis-7版本以下适用 string int编码:当字符串长度小于等于12字节并且字符串可以表示为整数时,Redis会使用int编码。 这样可以节省内存,并且在执行一些命令时可以直接进行数值计算。 embstr编码:当字符串长度小于等于39字节时,Redis会使用embstr编码。这种编码 阅读全文
posted @ 2024-08-28 16:00 朝阳1 阅读(23) 评论(0) 推荐(0)
摘要: 生产者 package main import ( "context" "fmt" "github.com/apache/rocketmq-client-go/v2" "github.com/apache/rocketmq-client-go/v2/primitive" "github.com/ap 阅读全文
posted @ 2024-08-28 10:11 朝阳1 阅读(108) 评论(0) 推荐(0)
摘要: 注意,当前使用的不是grpc协议 生产者 package main import ( "context" "fmt" "github.com/apache/rocketmq-client-go/v2" "github.com/apache/rocketmq-client-go/v2/primitiv 阅读全文
posted @ 2024-08-28 10:09 朝阳1 阅读(74) 评论(0) 推荐(0)
摘要: index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>upload file</title> </head> <body id="app"> <h1 style="text-align: ce 阅读全文
posted @ 2024-08-28 09:59 朝阳1 阅读(185) 评论(0) 推荐(0)
摘要: upload.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>upload file</title> </head> <body> <form method="post" enctype="mult 阅读全文
posted @ 2024-08-28 09:42 朝阳1 阅读(99) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "net/http" "time" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() r.GET("/", func(c *gin.Context) { w := c.W 阅读全文
posted @ 2024-08-26 17:36 朝阳1 阅读(23) 评论(0) 推荐(0)
摘要: 新建cargo项目 cargo new rust-web 编辑Cargo.toml [dependencies] actix-web = "4" 编写main.rs use actix_web::{get,web, App, HttpServer, Responder,HttpResponse}; 阅读全文
posted @ 2024-08-26 16:41 朝阳1 阅读(69) 评论(0) 推荐(0)
摘要: es,可以选择自己想要的版本 docker run --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -d elasti 阅读全文
posted @ 2024-08-23 17:50 朝阳1 阅读(13) 评论(0) 推荐(0)
摘要: 做个笔记,没有连数据库,没有存redis,只是demo package main import ( "errors" "fmt" "log" "net/http" "strings" "time" "github.com/dgrijalva/jwt-go/v4" "github.com/gin-go 阅读全文
posted @ 2024-08-23 17:05 朝阳1 阅读(44) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 49 下一页