Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6098913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:12:45+00:00 2026-05-23T13:12:45+00:00

I need to IMPLEMENT(not to use some library/open source) an event/message system. I have

  • 0

I need to IMPLEMENT(not to use some library/open source) an event/message system.

I have the following restrictions:

  • It must be fast. It will be use for games and speed is the main restriction. I think I can’t create/delete message/event classes every time a new message/event is sent even if I use custom allocators for that.

  • I must be able to predict when a messages/event sent/created will be received.

  • It must be easy to use. Doesn’t matter how complicated the implementations of the system will be, the programmer that uses it must have an easy to use interface.

  • I will prefer to avoid giant switches like on Windows messages, but I also want to avoid overriding a class for only one function – the event handler or something like this. I think something like the MFC style would be nice.

  • It must be able to handle lots (maybe 1000/frame at 60 frames/second, don’t know exactly this) of messages/events without performance issues.

  • It can’t use compilers hacks that are not available on other platforms. It must be portable. I will use C++ for implementation.

Any architecture/design/link/book that you think is suitable for/might help this would be highly appreciated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:12:46+00:00Added an answer on May 23, 2026 at 1:12 pm

    Let me address your points one by one:

    It must be fast. It will be use for games and speed is the main
    restriction. I think I can’t
    create/delete message/event classes
    every time a new message/event is sent
    even if I use custom allocators for
    that.

    It would suffice and perhaps be even more efficient (it was for me in one project) to reuse and refill existing messages. No need for a custom allocator.

    I must be able to predict when a
    messages/event sent/created will be
    received.

    You can make predictions but normal networks (you want portability) will make your predictions sometimes a bit off and sometimes way off.

    It must be easy to use. Doesn’t matter
    how complicated will be the
    implementations of the system, the
    programmer that uses it must have an
    easy to use interface.

    That should be possible, albeit this could cost you some extra effort. Error handling and special cases (platform, networking) come to mind.

    I will prefer to avoid giant switches
    like on Windows messages, but I also
    want to avoid overriding a class for
    only one function – the event handler
    or something like this. I think
    something like the MFC style would be
    nice.

    Avoiding manually written giant switches is a thing I 100% subscribe to.

    It must be able to handle lots (maybe
    1000/frame at 60 frames/second, don’t
    know exactly this) of messages/events
    without performance issues.

    If you take care during implementation, you should only be bounded by the network.

    It can’t use compilers hacks that are
    not available on other platforms. It
    must be portable. I will use C++ for
    implementation.

    Not even C++ is available on all platforms. Could you please list the platforms you are addressing?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to implement or use some library for an intelligent decimal cut off.
I have some doubts when to use abstract class and if I need to
I need to implement some kind of metric space search in Postgres(*) (PL or
I need to implement some NLP in my current module. I am looking for
I have some commercial equipment that I can connect to with a .Net library
i have a input tag which is non editable, but some times i need
I work on an open source portable C++ image compression library . Currently, my
I may have some misunderstanding regarding the use of the UINavigationControllerDelegate protocol. Here is
The whole story; I have some KeyValuePairs that I need to store in a
I need to implement a Ruler and I have a CustomControl RangeSlider which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.