收藏 分享(赏)

《用C++开发高性能服务器端网络应用程序》.ppt

上传人:hwpkd79526 文档编号:9468346 上传时间:2019-08-09 格式:PPT 页数:9 大小:126KB
下载 相关 举报
《用C++开发高性能服务器端网络应用程序》.ppt_第1页
第1页 / 共9页
《用C++开发高性能服务器端网络应用程序》.ppt_第2页
第2页 / 共9页
《用C++开发高性能服务器端网络应用程序》.ppt_第3页
第3页 / 共9页
《用C++开发高性能服务器端网络应用程序》.ppt_第4页
第4页 / 共9页
《用C++开发高性能服务器端网络应用程序》.ppt_第5页
第5页 / 共9页
点击查看更多>>
资源描述

1、Server Programming in C+,Wesley Bao, November 2005,Agenda,The myth and reality of design Purpose and overview of the slides Architectural perspectives Implementation perspectives Its decision time Analysis of real-world implementations Q & A,The Myth of Design,Rumor had it that you can follow some d

2、esign process/methodology and come out with a great design from scratch Rumor had it that you can explore and prototype alternatives, learn from failures and then choose the most suitable architecture/designThat is the case in research labs and (to some extent) OSS world,The Reality of Design,In rea

3、lity, you seldom program to a brand new domain; you seldom have the luxury to explore alternatives; prototypes can prove something wrong but cannot prove something right. Thats why they hire experienced engineers who had already familiarized with the domain and explored alternatives elsewhere before

4、 to architect and design solutions people are not very much willing to pay for trial-and-error Patterns are a good way to document and pass on experience (due diligence),Purpose and Overview,Server programming domain knowledge in a nutshell Explore architecture, design and implementation alternative

5、s, demonstrate their pros and cons backed by real data Analyze a few real-world examples to see why they choose certain alternatives,Architectural Perspectives,Iterative Kernel thread (process) per Connection User space thread (fiber) per Connection Thread per Request (active connection) Leader/Foll

6、ower Half Sync/Half Async Active Objects Reactor (level triggered) Proactor (edge triggered) How to manage session state Clustered servers + load balancing routing server,blocking I/O in threads select, poll, dev/poll epoll, rt signal, aio kqueue IOCP Build server into the kernel A survey of platfor

7、m capabilities Resource Pooling,Its Decision Time,Short vs. long-duration sessions Fixed packet length or you have to find the boundary How long will the idle time likely be Request/Response characteristics Protocol Examples Target user: SMB? Enterprise? xSP? Target platforms: cross-platform? Dedicated to few platforms? Appliance? Use wrappers to build in flexibility? How flexible can it be?,Real-world Implementations,Frameworks (aka half-cooked applications) ACE Indy Infrastructures JVM on various platforms Server-side applications QTSS others,

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报