zfoo-project / zfoo Goto Github PK
View Code? Open in Web Editor NEW💡Extremely fast enterprise server framework, can be used in RPC, game server, web server.
License: Apache License 2.0
💡Extremely fast enterprise server framework, can be used in RPC, game server, web server.
License: Apache License 2.0
大佬你好,我最近在学习Zfoo项目和Netty框架,我从书上看到继承了ChannelInboundHandlerAdapter重写了channelRead方法后需要显示调用ReferenceCountUtil.release(msg);去释放ByteBuf的引用,但看来该项目后发现好像没看到有类似操作,能麻烦说明下嘛...
Hi, I'm the author of Fury serialization framework, we just released fury v0.2.0, it supports jdk8~21, JDK17+ record are supported too. Actually, fury support record serialization by jit, which is super fast. Can we Bump fury version to 0.2.0 ?
有个疑问:encode会写入UdpAttachment,但是接收方decode数据包时又不关心发送方写入的UdpAttachment,所以encode那里是不是去掉UdpAttachment?
public class UdpCodecHandler extends MessageToMessageCodec<DatagramPacket, EncodedPacketInfo> {
@Override
protected void decode(ChannelHandlerContext channelHandlerContext, DatagramPacket datagramPacket, List<Object> list) {
...
var packetInfo = NetContext.getPacketService().read(sliceByteBuf);
var sender = datagramPacket.sender();
packetInfo.setAttachment(UdpAttachment.valueOf(sender.getHostString(), sender.getPort()));
list.add(packetInfo);
}
@Override
protected void encode(ChannelHandlerContext channelHandlerContext, EncodedPacketInfo out, List<Object> list) {
var byteBuf = channelHandlerContext.alloc().ioBuffer();
var udpAttachment = (UdpAttachment) out.getAttachment();
NetContext.getPacketService().write(byteBuf, out.getPacket(), out.getAttachment());
list.add(new DatagramPacket(byteBuf, new InetSocketAddress(udpAttachment.getHost(), udpAttachment.getPort())));
}
}
在客户端+网关+服务的模式下,服务层可以实现消息群发么?
Orm模块可以支持在一个JVM进程里访问两个Mongodb的Database么?
网关服不重启,逻辑服重启后,怎么还原session连接
用户登录后,每个socket连接存有uid对应哪个玩家, 逻辑服重启后会丢失uid, 怎么关联?
我看到开发文档比较少,是否有这方面的文档呢?
同题
GenerateTsUtils 98 行 是否应该改为 调用 “GenerateProtocolPath.protocolAbsolutePath” ?
内存占用怎么样
在网上也有人提出这个问题, method的Annotation一直都为空, method.isAnnotationPresent(annotation)返回false
https://stackoverflow.com/questions/53794925/isannotationpresent-returning-false-always
如果序列化的对象包含java.lang.Object类型的话,该怎么使用呀。比如我要传入的是一个Map<String,Object>形式的数据,需要将他序列化。
同题
别人的线上项目怎么维护,3.0版本的完全找不到了,让我很头痛,第一次遇到把老版本删除的,我不管你出于什么理由,这件事做的很不好,无可往回的错。
框架最重要的就是可维护性
请问大佬有没有全服(所有网关的所有合法用户)广播的例子?
使用OrmContext提供的MongoClient无法回滚事务,自行创建的client可以回滚
Add a system to use sdk
目前尝试用C#与用该框架搭建的Java项目进行TCP通讯,不知道如何进行对接。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.