Skip to Content
Hands-On Reactive Programming with Python
book

Hands-On Reactive Programming with Python

by Romain Picard
October 2018
Intermediate to advanced
420 pages
10h 26m
English
Packt Publishing
Content preview from Hands-On Reactive Programming with Python

Encode driver reconfiguration

As an evolution of the audio transcoder server, it would be nice to be able to change the encoding parameters from the configuration file, dynamically, without restarting the server. So the encode section of the configuration must evolve to contain the following information:

"encode": {  "samplerate": 16000,  "bitdepth": 16},

The two samplerate and bitdepth parameters for now are hardcoded in the encoder driver. Two steps are necessary to take these settings into account dynamically:

  1. Add these settings in the configuration file and use them in the encode driver
  2. Monitor the configuration file, reparse it, and use the new settings

With these changes, the reactivity diagram of the application becomes as follows: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Programming with Design Patterns

Python Programming with Design Patterns

James W. Cooper

Publisher Resources

ISBN: 9781789138726Supplemental Content