Featured in
Process & Practices

In-App Subscriptions Made Easy

There are various types of subscriptions: recurring, non-recurring, free-trial periods, various billing cycles and any possible billing variation one can imagine. But with lack of information online, you might discover that mobile subscriptions behave differently from what you expected. This article will make your life somewhat easier when addressing an in-app subscriptions implementation.

Featured in
Enterprise Architecture

EIP Designer: Bridging the Gap Between EA and Development

This article presents the EIP Designer project, an Eclipse-based tool for introducing integration patterns into an EA design, providing fluidity and continuity while filling the gap existing between EA practices and concrete software development.

Async, LINQ, and the Future of RxJS

Reactive Extensions for JavaScript 2.2 includes an optional component for working with asynchronous data sources. Known as rx.async.js, this fulfills the need for binding to events, callbacks, and promises.

Converting a promise to an observable is just as easy. After constructing the promise, wrap it with the Rx.Observable.fromPromise function.

Callbacks are of course an import consideration for JavaScript developers, especially those using Node.js. So Async RxJS offers wrappers for both standard and Node style callbacks. The latter assumes the first parameter of the callback is used to convey error information.

RxJS Future

On the roadmap for the future versions is query expression parsing. Like .NET’s LINQ, this will allow developers to create queries at runtime against data sources such as IndexedDB and OData. While OData should cover most scenarios, this could conceivably open the door for the creation of other LINQ-like providers.

Another concern that the Rx wants to address is back pressure. This would allow the Observer to throttle back the source when the incoming messages are too frequent for it to handle.