cawakharkov/symfony-micro

Symfony微服务应用示例

安装: 158

依赖者: 0

建议者: 0

安全: 0

星星: 52

关注者: 7

分支: 6

开放问题: 0

类型:项目

dev-master / 0.1.x-dev 2016-09-14 17:21 UTC

This package is not auto-updated.

Last update: 2024-09-14 17:37:25 UTC


README

基于\Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait的Symfony微应用

Symfony作为微服务框架

Latest Stable Version Total Downloads Latest Unstable Version License Scrutinizer Travis

包含内容

  • Symfony v3.0.*
  • Doctrine 2.5
  • Generator-bundle
  • Uikit
  • FontAwesome

用法

  • 创建项目
composer create-project cawakharkov/symfony-micro:dev-master
  • Bower
bower install
  • 使用内置服务器运行。
bin/console server:run localhost

小型基准测试

-> % siege -b -t30S -c 20 http://prod.micro.local/                     
** SIEGE 3.0.8
** Preparing 20 concurrent users for battle.
The server is now under siege...
Lifting the server siege...      done.

Transactions:                  11252 hits
Availability:                 100.00 %
Elapsed time:                  29.09 secs
Data transferred:               4.79 MB
Response time:                  0.05 secs
Transaction rate:             386.80 trans/sec
Throughput:                     0.16 MB/sec
Concurrency:                   19.96
Successful transactions:       11252
Failed transactions:               0
Longest transaction:            0.12
Shortest transaction:           0.03