Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zuston/tiny-server
web server in action , support Factcgi Protocol and Java Framework implemented by Java Nio
https://github.com/zuston/tiny-server
Last synced: 7 days ago
JSON representation
web server in action , support Factcgi Protocol and Java Framework implemented by Java Nio
- Host: GitHub
- URL: https://github.com/zuston/tiny-server
- Owner: zuston
- Created: 2016-12-16T13:40:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-07T14:37:02.000Z (almost 8 years ago)
- Last Synced: 2024-10-17T05:55:55.441Z (2 months ago)
- Language: Java
- Homepage:
- Size: 30.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tiny-server
web server in action
## Infrastructure
using the `nio` multiplexing model is to achieve the non-blocking server.
For example,one request has arrived the fuckServer,then one thread will accept the request to a `non-blocking queue`,another thread will also listen to the this non-blocking queue and register to the selector and to handle it.
In fact,the selector is an another non-blocking queue.## Progess
### PHP SUPPORT
the server can be used as `the php web server` ,
just put your php files into the `PhpApp` floder ,
the route format is limited as `http://localhost/a/b/c/d/e?name=zuston&age=24` ,
the php entrance file is the `index.php` , just like the way when using the nginx.### JAVA SERVLET IMPLEMENTATION
coding..................
# 实践 web server
## 进度
### 支持 PHP
实现了 `fastcgi` 协议,直接打开 `php-fpm`,就可以支持了
只需要将 `php` 文件放在 `PhpApp` 文件夹下,
路由方式 `http://localhost/a/b/c/d/e?name=zuston&age=24`,
入口文件为 `index.php`
### JAVA SERVLET 协议实现
协议实现有困难,可以自己实现 `http` 方法实现一个 JAVA 框架