• Complain

Tamir Dresher - Rx.NET in Action

Here you can read online Tamir Dresher - Rx.NET in Action full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2017, publisher: Manning Publications, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Tamir Dresher Rx.NET in Action
  • Book:
    Rx.NET in Action
  • Author:
  • Publisher:
    Manning Publications
  • Genre:
  • Year:
    2017
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Rx.NET in Action: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Rx.NET in Action" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Rx.NET in Action teaches developers how to build event-driven applications using the Rx library. Starting with an overview of the design and architecture of Rx-based reactive applications, youll get hands-on with in-depth code examples to discover firsthand how to exploit the rich query capabilities that Rx provides and the Rx concurrency model that allows you to control both the asynchronicity of your code and the processing of event handlers. Youll also learn about consuming event streams, using schedulers to manage time, and working with Rx operators to filter, transform, and group events.

Tamir Dresher: author's other books


Who wrote Rx.NET in Action? Find out the surname, the name of the author of the book and a list of all author's works by series.

Rx.NET in Action — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Rx.NET in Action" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Rx.NET in Action
Tamir Dresher

RxNET in Action - image 1

Copyright

For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact

Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 761 Shelter Island, NY 11964 Email: orders@manning.com

2017 by Manning Publications Co. All rights reserved.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps.

Picture 2 Recognizing the importance of preserving what has been written, it is Mannings policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine.

Picture 3Manning Publications Co.20 Baldwin RoadPO Box 761Shelter Island, NY 11964
Development editor: Lesley TritesReview editor: Donna ClementsTechnical development editor: Michael LundCopyeditor: Sharon WilkeyProofreader: Elizabeth MartinTechnical proofreader: Cody SandTypesetter: Marija TudorCover designer: Marija Tudor

ISBN 9781617293061

Printed in the United States of America

1 2 3 4 5 6 7 8 9 10 EBM 22 21 20 19 18 17

Dedication

To Gabi, my wife and best friend, who made this dream a reality

Brief Table of Contents
Table of Contents
Foreword

This book, Rx.NET in Action, does a great job in explaining the details and background that .NET developers need to effectively use Rx. In particular, it explains how to connect the plethora of asynchronous types in .NET to Rx observables, and how to deal with errors, resource allocation, and last but not least, concurrency.

Since its inception, the .NET Framework has emphasized the importance of asynchronous execution and nonblocking I/O. Through delegates, the .NET Framework has emphasized higher-order functional programming from the beginning, and by automatically defining the BeginInvoke and EndInvoke methods on delegates, developers may call any method asynchronously.

But the BeginInvoke/EndInvoke pattern for asynchronous operations is tedious and verbose, because it requires converting your code into continuation-passing style. As an alternative, the .NET Framework introduced the event-based asynchronous pattern that uses the built-in support of .NET for events and event handlers. Although the event-based pattern was a big step forward compared to asynchronous delegates, more opportunities remained to streamline the development experience.

For synchronous streams of values, modeled by the standard interfaces of Enumerable/IEnumerator, the LINQ standard query operators provide a beautiful and elegant algebra for processing streams in a high-level and declarative manner. Wouldnt it be nice if we could use the fact that events are conceptually also streams of values and hence provide a similar LINQ-based programming model for events?

Another disadvantage of using events for asynchronous calls is that this ignores the fact that unlike most other events, such as mouse clicks, the events wired up to asynchronous operations produce at most one value. Wouldnt it be nice if we could use the fact that asynchronous methods return only a single value and hence provide a similar imperative programming model that supports regular control-flow-like conditionals, loops, and exception handling for asynchronous methods?

As it turns out, the answer to both questions is a resounding yes! By using the mathematical trick of equalization, we can mechanically convert the IEnumerable/IEnumerator interfaces for synchronous pull-based streams into the monadic IObservable/IObserver interfaces for asynchronous push-based streams. The async/await syntax in C# and Visual Basic allows developers to use regular imperative syntax to write both synchronous and asynchronous methods, and the LINQ query comprehensions allow developers to write queries over both synchronous and asynchronous data streams

This is the heart of Rx. Many languages outside the .NET world have now adopted the magic square of one/many sync/async, making developers happy and productive no matter what language theyre using.

If youre a .NET developer, youll want to keep a copy of this book handy to put Rx.NET into action!

E RIK M EIJER

I NVENTOR OF R X, FOUNDER OF A PPLIED D UALITY

Preface

Reactive Extensions (Rx) for .NET was first published in November 2009 under the short description Rx is a .NET Library that allows programmers to write succinct declarative code to orchestrate and coordinate asynchronous and event-based programs based on familiar .NET idioms and patterns. (See http://mng.bz/gQ31.)

I remember watching the first examples and reading the discussions. I was amazed by the elegance of the solutions and how simple they looked. Unfortunately, when I sat down and tried to use Rx, things were harder than I thought, and the mental change I needed to make toward reactive programming was significant. In those days, there wasnt a lot of material on the subject, and I had to struggle to solve my issues and learn things the hard way with a lot of trial and error.

In 2012, at end of my military service and upon joining CodeValue (www.codevalue.net), I had two major projects that enabled me to really appreciate my Rx knowledge. The first was about a cybersecurity application that needed to react to multiple events and coordinate them in order to show the end user the state of various incidents all happening in parallel. The second was a video chat application, running on mobile and PC devices. The video chat application reacted to events such as users logging in and out of the system and receiving messages of various types that had to be dealt with differently. Though these two systems were different, they shared the same problems of writing a flow based on eventsa flow that involves filtering of received values, dealing with asynchronicity and concurrency, and identifying patterns of recurring events so that the application could respond efficiently and correctly. I introduced Rx to both of those systems, and it was one of the things that made each a success. We exceeded expectations and preceded our schedule.

Still, even though I had knowledge of Rx, problems still happened from time to time, and little material on Rx, such as books and guides, was available. Many times problems originated because of my colleagues lack of knowledge or situations that were new to us. Luckily, after I identified the problem source, it would be easy to fix, mostly because of the flexibility of Rx operators. In the following years, I started to blog and speak about Rx and how it made solving complex problems easy. That is when the idea for this book started to grow. My vision was to create a step-by-step guide that holds the pieces needed for the .NET programmer to get the maximum out of the Rx library and the reactive programming paradigm. I also wanted to write about the practices that I acquired over the years, as well as the pitfalls and their solutions.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Rx.NET in Action»

Look at similar books to Rx.NET in Action. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Rx.NET in Action»

Discussion, reviews of the book Rx.NET in Action and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.