Browse by Tags

All Tags » LINQ (RSS)

Converting a polling based API into a streaming API with the Reactive Extensions

Recently my building has been having issues with its boilers, and the heat has been going out for longer than is comfortable. The superintendent that makes a habit of periodically checking on the status of each of the boilers. A workable approach certainly...

The Anonymous Implementation pattern (as seen in the Reactive Extensions)

There’s a pattern used in the Reactive Extensions that I’m calling the Anonymous Implementation. You can see it in use on IObservable’s one method IDisposable Subscribe(IObserver<T> observer); Given an Observable which you want to subscribe to,...

16 Ways To Create IObservables without implementing IObservable

The Reactive Extensions for .Net offers plenty of ways to create IObservables   Some primitives IObservable<int> obs = Observable.Empty<int>(); IObservable<int> obs = Observable.Return(0); IObservable<int> obs = Observable...

Streaming OLAP with the Reactive Extensions (RX) for .Net

Streaming OLAP is something that comes up over and over again in the “CEP space” – using the Reactive Extensions for .Net this demo shows the basics; filtering, grouping, aggregates, and concurrent queries. To set the context, the idea here is focus on...

CEP Style Sliding windows in the RX – Take 2

The bug I mentioned in my first attempt at a sliding window was the minor issue that the aggegates never went down to 0, even if the window had emptied out. The problem line of code was cur.GroupBy(tsst => tsst.Value.Symbol) – if the window is empty...

From the ReactiveFramework to StreamInsight and Back

In my last post I showed how to send StreamInsight output streams to a UI via the ReactiveFramework . Here’s we’ll do the reverse, by sending an RX stream into a CEP stream. Instead of a partial example, I’ll use an end to end example showing simulated...

Routing StreamInsight output streams to a UI

One compelling feature of StreamInsight is it’s in-process hosting model. In addition to reducing the complexity of server side installs, it’s now possible to have a  CEP engine in the client UI. The simplest way of getting CEP streams onto the UI...

Exploring the Reactive Framework part II

Talk around the water cooler is that it might be possible to use the Reactive Framework for some lightweight CEP. I’ll correct some of the (big) mistakes from my last post and build up a “jumping” window extension method for IObservable s.   In my...

Exploring the Reactive Framework (RX)

A few days ago , intentionally or not, a version of the Reactive Framework was released into the wild . Let’s see how we can use the RX for computations on a stream of data. As an example we’ll take a stream of ints and produce the averages in groups...

Preview of the Reactive Framework available via Silverlight Toolkit

Via Jafar Husain - it appears that there’s a early release of the Live Labs Reactive Framework (& with Brian Beckman and Erik Meijer ) in the latest Silverlight Toolkit   In addition to some of the standard LINQ operators ( Select, Where, Aggregate...
More Posts Next page »