Remove Authentication Remove Construction Remove System Design
article thumbnail

Pushy to the Limit: Evolving Netflix’s WebSocket proxy for the future

Netflix Tech

Once they receive the voice command, we allow them to make an authenticated call through apiproxy , our streaming edge proxy, to our internal voice service. The voice service then constructs a message for the device and places it on the message queue, which is then processed and sent to Pushy to deliver to the device.

article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

To avoid constructing the entire dependency chain, use Zero-Impact Instantiation and Parameterless Instantiation. it("uses hosted page for authentication", function() { const client = createClient({ // Use the factory function. The state of immutable objects is determined when the object is constructed, and never changes afterwards.

Testing 88
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

To avoid manually constructing the entire dependency chain, use Parameterless Instantiation with Zero-Impact Instantiation. For example, an immutable Address class should be constructed with its street, city, and so forth. In contrast, if the LoginController tests stubbed or mocked out Auth0Client , the chain would be broken.

Testing 138
article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

To avoid constructing the entire dependency chain, use Zero-Impact Instantiation and Parameterless Instantiation. it("uses hosted page for authentication", function() { const client = createClient({ // Use the factory function. The state of immutable objects is determined when the object is constructed, and never changes afterwards.

Testing 40