Wrox Programmer Forums
BOOK: Patterns, Principles and Practices of Domain-Driven Design
This is the forum to discuss the Wrox book Patterns, Principles and Practices of Domain-Driven Design by Scott Millett; ISBN: 978-1-118-71470-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Patterns, Principles and Practices of Domain-Driven Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 2nd, 2015, 07:29 PM
Registered User
Join Date: Jul 2015
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 26 Event Projections

In the Chapter 26 code samples where you are querying EventStore projections, you have lines similar to this:

// don't hard-code this URL. Access via entry point resource
var projectionStateUrl = "http://localhost:211/projection/MonthsCounts/state";

The code then creates a WebClient and downloads the response from this URL. I don't understand what you mean by 'Access via entry point resource'. Are you saying a whole new web service should be created for the purpose of querying the EventStore?
Old September 3rd, 2015, 02:03 PM
Wrox Author
Join Date: May 2015
Posts: 59
Thanks: 1
Thanked 5 Times in 5 Posts

Hi Skupena,

The advice to follow the entry point resource is based on the hypermedia guidelines presented in Chapter 13. Essentially, by going via the entry point resource, the internal URL structure is free to change, loosening the coupling between client and server.

There are always trade-offs though. In this case that means an extra HTTP request to the entry point resource.

Is that comprehensible?


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2, page 26 - Try it Out marsch BOOK: Beginning iOS 5 Application Development 2 November 6th, 2012 01:43 AM
CHAPTER 2 page 26 -27 joopthecat BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 3 August 3rd, 2009 07:03 PM
code for chapter 26 missing? uvis130 BOOK: Excel 2003 VBA Programmer's Reference 3 February 6th, 2006 03:11 PM
chapter 26 code alfmeiggs BOOK: Excel 2003 VBA Programmer's Reference 0 November 3rd, 2005 05:57 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.