smart-http

值得记录的几件事

耗尽温柔 提交于 2020-02-27 01:16:16
记录一些自己在工作、学习中觉得有价值、有思考、对他人有帮助的事件/成果。这件简单的事,希望可以坚持10年。 2019 年 工作 消息容灾解决方案。实现 阿里云RocketMQ 与公司自建 RocketMQ 的互为主备容灾。当某个服务不可用时,自动触发消息容灾与告警,保障业务无损。并且通过自建消息平台实现资源整合、监控,对于各消息资源在业务中的使用情况会有一个清晰的了解。 关键字:ZK、Redis、RocketMQ、HMQ。 全链路压测建设。实现线上压测流量的识别与 DB 操作的影子库路由。关键点: Dubbo Filter:实现压测标在整个分布式服务中的透传 Redis:业务缓存与压测缓存的数据隔离 MQ:忽略压测的消息下发,防止影响下游业务。 DB:路由影子库,防止污染线上库。 网关:忽略压测的服务请求。 单测mock工具。针对分布式服务的单测解决方案,解除单测执行对外部服务、数据库、中间件的依赖。在首次执行单测时进行数据自动采集,后续再次执行单测加载第一次采集到数据作为基础场景数据,实现单测的:write once, run anytime。 业务。对于端应用的业务易变性设计了一套应对方案,采用业务域横向解耦、纵向分层的方式有效解决了系统中逻辑复杂、模型臃肿问题。已具备的扩展性应该能支撑未来一两年,甚至更久的业务发展。目前在系统中的落地效果还不错。 学习 smart

基于AIO架构smarthttp开发的完整MVC框架

隐身守侯 提交于 2019-12-26 21:49:11
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 写了篇《基于jdk自带httpserver开发的最小完整MVC框架》,就再写篇AIO的MVC DEMO启动时间:0.1s(应该算少的吧?) smart-http 是一款比较简易的 http服务器,其通信内核采用了smart-socket最新版v1.4.6。但想提供友好的WEB服务,需要很多别的功能。 通过与solon框架的融合,便可以友好的提供MVC和AOP服务: solon 是一个框架的壳,实现了MVC,IOC,AOP,注解,插件等等机制。把这个壳套在smart-http上,便可以为其提供mvc等能力。 smarthttp 是对smart-http的适配,使其能套上solon这个壳;同时还可以享用solon的其它插件带来的能力,如session,json等。 snack3 提供json和序列化支持,也足够小;已适配为solon的序列化框架之一。 enjoy 很难再找到比它更小的模板引擎了,还快得让人想哭。 (一)新建一个 maven 空项目 (二)添加 maven 引用 <dependencies> <!-- 基于 smart-http 封装的 solon.boot --> <dependency> <groupId>org.noear</groupId> <artifactId>solon.boot

Insufficient Permission Pushing to Git Shared Repo over Smart HTTP

三世轮回 提交于 2019-12-21 19:41:05
问题 I'm trying to evaluate git for our team and one of the requirements is to use HTTPS as the transport method. I've been trying to follow the git-http-backend documentation as well as some sparse blogs on setting this up using the new Smart HTTP transport, but am just not getting it working. I know that it's probably something stupid, but I've racked my brain over it to no avail. Don't assume any real knowledge with git, I'm pretty new to the tool. Right now I can clone over HTTP just fine, but

Using GIT Smart HTTP via IIS

牧云@^-^@ 提交于 2019-12-20 09:24:44
问题 I recently read Scott Chacon's post "Smart HTTP Transport", and I was hoping that it might have become possible via IIS (windows 7) since that post was written. I haven't been able to find anything showing how it can be done, and Apache is not an option in my IIS 7 based environment. So, I'm at a loss (git daemon was foiled for me by a combination of AVG anti-virus and AD). I want to provide LDAP authenticated read/write access for selected users. So this question seems not to be relevant. Do

GitSmartHTTP for gitolite repositories over Apache does not allow me to push

情到浓时终转凉″ 提交于 2019-12-10 01:57:07
问题 I am setting up a git-http-backend CGI script to handle my git.domain subdomain. The server is behind an ELB (elastic load balancer) on AWS cloud. My server config is as follows (my git hosting is handled by gitolite): <VirtualHost *:80> ServerName git.domain ServerAdmin hjpotter92+git@domain #SuexecUserGroup git git DocumentRoot /opt/gitolite/repositories/ PerlLoadModule Apache::Authn::Redmine SetEnv GIT_PROJECT_ROOT /opt/gitolite/repositories/ SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER # Have

GitSmartHTTP for gitolite repositories over Apache does not allow me to push

本秂侑毒 提交于 2019-12-05 01:36:52
I am setting up a git-http-backend CGI script to handle my git.domain subdomain. The server is behind an ELB (elastic load balancer) on AWS cloud. My server config is as follows (my git hosting is handled by gitolite): <VirtualHost *:80> ServerName git.domain ServerAdmin hjpotter92+git@domain #SuexecUserGroup git git DocumentRoot /opt/gitolite/repositories/ PerlLoadModule Apache::Authn::Redmine SetEnv GIT_PROJECT_ROOT /opt/gitolite/repositories/ SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER # Have also tried removing this variable SetEnv GIT_HTTP_EXPORT_ALL ScriptAliasMatch \ "(?x)^/(.*/(HEAD | \

Insufficient Permission Pushing to Git Shared Repo over Smart HTTP

天涯浪子 提交于 2019-12-04 11:00:41
I'm trying to evaluate git for our team and one of the requirements is to use HTTPS as the transport method. I've been trying to follow the git-http-backend documentation as well as some sparse blogs on setting this up using the new Smart HTTP transport, but am just not getting it working. I know that it's probably something stupid, but I've racked my brain over it to no avail. Don't assume any real knowledge with git, I'm pretty new to the tool. Right now I can clone over HTTP just fine, but when I try and push, the client gets: $ git push Username: Password: Counting objects: 4, done. Delta

Using GIT Smart HTTP via IIS

天大地大妈咪最大 提交于 2019-12-02 18:38:51
I recently read Scott Chacon's post " Smart HTTP Transport ", and I was hoping that it might have become possible via IIS (windows 7) since that post was written. I haven't been able to find anything showing how it can be done, and Apache is not an option in my IIS 7 based environment. So, I'm at a loss (git daemon was foiled for me by a combination of AVG anti-virus and AD). I want to provide LDAP authenticated read/write access for selected users. So this question seems not to be relevant. Do you know of a way to provide access to GIT via IIS? yysun I just created a project . It has an ASP