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

  • Home
  • SEARCH
  • 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 8834459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:01:15+00:00 2026-06-14T09:01:15+00:00

I am looking for a Rendezvous like design pattern example or implementation in Rails?

  • 0

I am looking for a Rendezvous like design pattern example or implementation in Rails? Essentially looking to fire an output event only when a set of input events are all fired. In general I expect input events to trigger at different times. Here is a contrived example

Input Events :
1. Fuel Pump failure
2. Threshold in Bank 2 low
3. EV initiator inactive

Each event gets queued and when all of the input events have fired(conditions are met), a output event is fired.

A.Fuel Leak detected

Based on MVC pattern, I understand I need to implement the rendezvous pattern in the controller but want to implement it most efficiently as the volume, velocity and variability part of these events are going to be high.

Thanks
Satya

  • 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-06-14T09:01:16+00:00Added an answer on June 14, 2026 at 9:01 am

    I’m not familiar with the rendezvous pattern in particular, but I think I would handle this in the model level with a callback. Something like this:

    class Pump < ActiveRecord::Base
      before_save :check_fuel_leak
    
      private
    
      def check_fuel_leak
        Pump.fuel_leak_detected! if self.failure? && self.bank_2_threshold <= 20 && self.ev_initiator_inactive?
      end
    end
    

    A lot depends specifically on your use case though: what responds to the event that’s fired? What are the actual events leading up to the output event? Still, I think this is a relatively good place to get started.

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

Sidebar

Related Questions

Looking for a good example of how to set up child models in knockoutjs.
Looking for something like PyDoc that can generate a set of Wiki style pages
Looking for a perl one-liner what will find all words with the next pattern:
Looking at the Ehcahce implementation of net.sf.cache.JS107, I am trying to achieve the following
Looking for best advice on how to do this: I have an insert like
Looking for simple php class routing, like this: http://fatfree.sourceforge.net/page/routing-engine Is there a ready-made solutions?
Looking for a scalable, flexible and fast database design for 'Build your own form'
Looking at the output of this particular method is confusing to me. I'm trying
Looking at the example here - http://jsfiddle.net/uqYeQ/3/ The first row behaves as expected, returning
Looking for something like the webkit dev tools for analyzing web pages. Ideally it

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.