Angular 4 scheduled form autosave : <p>I'm trying to implement form data autosave in Angular 4. It should work like this:<br></p>

<ul>
<li>User changes some data in the form -> some save request to DB is invoked.
Let's assume some timer is started here for 2s.  </li>
<li>During 2s from previous save request all changes will not invoke any requests (to reduce DB load), but will trigger another save request then 2s timer will expire. </li>
<li>If no timer is started at the moment then save request should be invoked immediately.</li>
</ul>

<p>I suppose that <code>Observable</code>, <code>Subject</code> and <code>Scheduler</code> from RxJS will help me, but I am completely new to it. Could you suggest the best approach for achieving above functionality please?  </p>
