All Projects → zjpjohn → CloudSchedule

zjpjohn / CloudSchedule

Licence: other
分布式调度系统,基于zookeeper ,netty,调度内核参考Spring schedule 执行表达式和Spring schedule一样,没有使用Quartz,客户端完全基于注解配置,使用同 Spring schedule一致,最少配置,使用简单

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
java
68154 projects - #9 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to CloudSchedule

Springboot Templates
springboot和dubbo、netty的集成,redis mongodb的nosql模板, kafka rocketmq rabbit的MQ模板, solr solrcloud elasticsearch查询引擎
Stars: ✭ 100 (+614.29%)
Mutual labels:  netty, zookeeper, springboot
eagle
Eagle分布式rpc调用,借助Zookeeper实现服务注册和发现,基于AQS实现高性能连接池,支持分布式追踪、监控、过载保护等配置。提供Spring和SpringBoot插件,方便与Spring和SpringBoot集成。
Stars: ✭ 77 (+450%)
Mutual labels:  netty, zookeeper
Springboot Learning
🚕 spring boot学习案例,方便spring boot 初学者快速掌握相关知识
Stars: ✭ 724 (+5071.43%)
Mutual labels:  schedule, springboot
codes-scratch-zookeeper-netty
zk + netty 实现集群节点文件同步服务
Stars: ✭ 29 (+107.14%)
Mutual labels:  netty, zookeeper
piccolo
Netty4长连接网关
Stars: ✭ 19 (+35.71%)
Mutual labels:  netty, zookeeper
Thunder
⚡️ Nepxion Thunder is a distribution RPC framework based on Netty + Hessian + Kafka + ActiveMQ + Tibco + Zookeeper + Redis + Spring Web MVC + Spring Boot + Docker 多协议、多组件、多序列化的分布式RPC调用框架
Stars: ✭ 204 (+1357.14%)
Mutual labels:  netty, zookeeper
rpc-spring-boot-starter
自定义rpc框架,支持Java序列化和protobuf序列化协议,多种负载均衡算法
Stars: ✭ 75 (+435.71%)
Mutual labels:  netty, zookeeper
Pdf Books
📚 PDF 书籍库
Stars: ✭ 134 (+857.14%)
Mutual labels:  netty, springboot
qynat-spring-boot-starter
A springboot-starter that can achieve Intranet penetration. 一款可以实现内网穿透的springboot-starter。
Stars: ✭ 65 (+364.29%)
Mutual labels:  netty, springboot
taotao-cloud-project
微服务开发脚手架,包括大数据模块、微服务模块、前端模块。基于Spring Cloud Alibaba的微服务架构。提供技术框架的基础能力的封装,减少开发工作,只关注业务,包含了工作以来的工作总结和技术沉淀
Stars: ✭ 76 (+442.86%)
Mutual labels:  zookeeper, springboot
itstack-naive-chat-server
💞 《服务端》| 服务端同样使用Netty4.x作为socket的通信框架,同时在服务端使用Layui作为管理后台的页面,并且我们的服务端采用偏向于DDD领域驱动设计的方式与Netty集合,以此来达到我们的框架结构整洁干净易于扩展。同时我们的通信协议也是在服务端进行定义的,并对外提供可引入的Jar包,这样来保证客户端与服务端共同协议下进行通信。
Stars: ✭ 21 (+50%)
Mutual labels:  netty, springboot
Gopush
分布式消息推送服务,可以用于客服、推送、聊天等诸多系统的 核心组件服务!
Stars: ✭ 204 (+1357.14%)
Mutual labels:  netty, springboot
Mango
A high-performance, open-source java RPC framework.
Stars: ✭ 150 (+971.43%)
Mutual labels:  netty, zookeeper
Mini Rpc
Spring + Netty + Protostuff + ZooKeeper 实现了一个轻量级 RPC 框架,使用 Spring 提供依赖注入与参数配置,使用 Netty 实现 NIO 方式的数据传输,使用 Protostuff 实现对象序列化,使用 ZooKeeper 实现服务注册与发现。使用该框架,可将服务部署到分布式环境中的任意节点上,客户端通过远程接口来调用服务端的具体实现,让服务端与客户端的开发完全分离,为实现大规模分布式应用提供了基础支持
Stars: ✭ 205 (+1364.29%)
Mutual labels:  netty, zookeeper
Nettyrpc
A simple RPC framework based on Netty, ZooKeeper and Spring
Stars: ✭ 1,975 (+14007.14%)
Mutual labels:  netty, zookeeper
toy-rpc
Java基于Netty,Protostuff和Zookeeper实现分布式RPC框架
Stars: ✭ 55 (+292.86%)
Mutual labels:  netty, zookeeper
im-bass
基础IM通信
Stars: ✭ 56 (+300%)
Mutual labels:  netty, springboot
Mmo Server
Distributed Java game server, including login, gateway, game demo
Stars: ✭ 114 (+714.29%)
Mutual labels:  netty, zookeeper
Mrpc
🐿 netty,zookeeper,spring,kyro rpc framework.
Stars: ✭ 128 (+814.29%)
Mutual labels:  netty, zookeeper
practice
Java并发编程与高并发解决方案:http://coding.imooc.com/class/195.html Java开发企业级权限管理系统:http://coding.imooc.com/class/149.html
Stars: ✭ 39 (+178.57%)
Mutual labels:  zookeeper, springboot

CloudSchedule

分布式调度系统,基于zookeeper ,netty,调度内核参考Spring schedule 执行表达式和Spring schedule一样,没有使用Quartz,客户端完全基于注解配置,使用同 Spring schedule一致,最少配置,使用简单

客户端使用只需作如下配置: 1.启用该调度器

@Configuration

@EnableQSchedule

public class ScheduleConfig {

@Resource
private Environment env;

@Bean
public QScheduleProperties qScheduleProperties() {
    QScheduleProperties properties = new QScheduleProperties();
    properties.setAppName(env.getProperty("schedule.appName"));
    properties.setEnv(env.getProperty("schedule.env"));
    properties.setNameSpace(env.getProperty("schedule.nameSpace"));
    properties.setPort(Integer.valueOf(env.getProperty("schedule.port")));
    properties.setUrl(env.getProperty("schedule.url"));
    return properties;
}

}

2.使用注解进行定时任务操作

@QSchedule()

public class ScheduleClientDemo {

@Schedule(cron = "*/10 * * * * ?")
public void schedule1() {
    System.out.println("测试用例1");
}

@Schedule(cron = "*/10 * * * * ?", value = "test2")
public void schedule2() {
    System.out.println("测试用例2");
}

}

server端主要是进行管理和任务调度

image image image

后续版本将主要做两方面:

1.引入leader选举,调度器进行无线扩容,对定时任务的调用进行负载均衡,平滑的在不同调度器上运行

2.调度器进行优化,是定时任务执行更高效

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].