GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sl950313/SEDA-framework: A SEDA programming framework aims to generate high concurrency applications.

BranchesTags
Open more actions menu

Latest commit

 

History

56 Commits
56 Commits

Folders and files

NameName
Last commit message
Last commit date
config
config
 
 
message_queue
message_queue
 
 
test
test
 
 
IElement.h
IElement.h
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
Untitled Diagram.drawio
Untitled Diagram.drawio
 
 
acceptor.cpp
acceptor.cpp
 
 
acceptor.h
acceptor.h
 
 
acceptor_stage.cpp
acceptor_stage.cpp
 
 
buffer.cpp
buffer.cpp
 
 
buffer.h
buffer.h
 
 
config.cpp
config.cpp
 
 
config.h
config.h
 
 
connect.cpp
connect.cpp
 
 
connect.h
connect.h
 
 
event_core.cpp
event_core.cpp
 
 
event_core.h
event_core.h
 
 
function.h
function.h
 
 
handle_info.h
handle_info.h
 
 
http_module.h
http_module.h
 
 
http_request.cpp
http_request.cpp
 
 
http_request.h
http_request.h
 
 
http_response.cpp
http_response.cpp
 
 
http_response.h
http_response.h
 
 
http_server.cpp
http_server.cpp
 
 
http_server.h
http_server.h
 
 
job_queue.cpp
job_queue.cpp
 
 
job_queue.h
job_queue.h
 
 
log.cpp
log.cpp
 
 
log.h
log.h
 
 
loop.cpp
loop.cpp
 
 
loop.h
loop.h
 
 
main.cpp
main.cpp
 
 
marcos.h
marcos.h
 
 
mq_def.cpp
mq_def.cpp
 
 
mq_def.h
mq_def.h
 
 
receiver.cpp
receiver.cpp
 
 
receiver.h
receiver.h
 
 
redis_client.cpp
redis_client.cpp
 
 
redis_client.h
redis_client.h
 
 
seda.cpp
seda.cpp
 
 
seda.h
seda.h
 
 
seda_object.cpp
seda_object.cpp
 
 
seda_object.h
seda_object.h
 
 
sender.cpp
sender.cpp
 
 
sender.h
sender.h
 
 
slab_system.cpp
slab_system.cpp
 
 
slab_system.h
slab_system.h
 
 
socket.cpp
socket.cpp
 
 
socket.h
socket.h
 
 
splaytree.c
splaytree.c
 
 
splaytree.h
splaytree.h
 
 
stage.cpp
stage.cpp
 
 
stage.h
stage.h
 
 
stage_control.cpp
stage_control.cpp
 
 
stage_control.h
stage_control.h
 
 
stage_handler.cpp
stage_handler.cpp
 
 
stage_handler.h
stage_handler.h
 
 
stage_message.h
stage_message.h
 
 
stage_queue.cpp
stage_queue.cpp
 
 
stage_queue.h
stage_queue.h
 
 
struct.h
struct.h
 
 
tcp_server.cpp
tcp_server.cpp
 
 
tcp_server.h
tcp_server.h
 
 
test_mq_client.cpp
test_mq_client.cpp
 
 
test_mq_client_publish.cpp
test_mq_client_publish.cpp
 
 
test_seda_framework.cpp
test_seda_framework.cpp
 
 
test_server.cpp
test_server.cpp
 
 
test_work_pool.cpp
test_work_pool.cpp
 
 
test_worker_pool.cpp
test_worker_pool.cpp
 
 
utiltools.cpp
utiltools.cpp
 
 
utiltools.h
utiltools.h
 
 
worker_pool.cpp
worker_pool.cpp
 
 
worker_pool.h
worker_pool.h
 
 

Repository files navigation

SEDA_framework

Author : Lei Shi


Introduction:

This is C++ implement of SEDA framework. EveryOne can use our programming framework to implement a high concurrency system easily.

A http server is a example for the use of SEDA framework. It may give you help. the SEDA can be found at : The Staged Event-Driven Architecture for Highly-Concurrent Server Applications

  • The advantages of SEDA:

    • The SEDA makes the deployment of architecture easier. developors will only focus on the logical function of your own system.

    • The SEDA makes full use of system resources with flexible thread control.

  • The disadvantages:

    • NULL

Our architecture and technology implement:

  • Stage :
                                    
                   ---------------------------------------------
                   |                                           |
   ------------    |  |---------------|      |---------------| |    
   |    MSG   |------->    receiver   ------>| stage-handler | |
   ------------    |  |---------------|      |---------------| |  
                   |          ^                      ^         |
                   |          |                      |         |
                   |          |                      |         |
                   |  |---------------|      |---------------| |    -------
                   |  | stage-control |<---->|  worker-pool  ------>| MSG |
                   |  |---------------|      |---------------| |    -------
                   ---------------------------------------------
                   
  • Each function of module
    • receiver:

      • The receiver is a subsriber of message-queue.
      • Receive msq from other stage and forwarding to the stage-handler.
      • The receive is implemented by ZeroMQ.
    • stage-handler:

      • The logic of handling massages and the producer of message-queue, the excute units are in worker-pool.
    • worker-pool:

      • A worker-pool which can be implement as thread-based or processor-based worker-pool.
      • The thread-based worker-pool is implemented by mutex-based and no-mutex-based.
      • The difference between different types of worker-pool should be done during the following days.
    • stage-control:

      • Collecting infomation from receiver and worker-pool, then dynamicly adjusting the queue-num and worker-num.
      • But Using which method to adjust the load is still under thinking.

About

A SEDA programming framework aims to generate high concurrency applications.

Topics

architecturesedasystem

Resources

Readme
Activity

Stars

9 stars

Watchers

1 watching

Forks

9 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.