Skip to content

Work with multiple datacenters and cloud providers#23

Merged
indexzero merged 21 commits intomasterfrom
clouds
Feb 11, 2013
Merged

Work with multiple datacenters and cloud providers#23
indexzero merged 21 commits intomasterfrom
clouds

Conversation

@indexzero
Copy link
Member

Big things on the near horizon.

3rd-Eden and others added 21 commits February 11, 2013 13:13
[minor] Added missing keywords
[minor] Using strict mode in the module now, it caught some small pitfalls
[minor] Small optimazations to the createClient, no pointless event listeners are added
[minor] Removed pointless require statements and made the code style more uniform.

The reason for this refactor is that we need to support different remoteApi's for the
applications as they can be hosted in different data centers.
[minor] Removed the `res.statusCode` code smell

Applications that are hosted in different datacenters need to be called at their
correct endpoint. The cloud details are inside of the app documents so we need to fetch
both the endpoint resource and the app document before we know which datacenter we
need to hit for the given change.

The statusCode was introduced in commit 9cea327 but
Avian has no memory of why he did it. So i'm removing it to prevent possible breakage
when you expect that the result is always an object.
… `request` method.

[refactor] Make the `upload` method use the `request` API instead of duplicating code.
Because multiple routes are affected by these changes.
…ration incase of failure

[minor] Make some routes cloud compatible
[fix] removed a pointless cloud call
…rototype.endpoints` to `Client.prototype.endpoints`
@3rd-Eden
Copy link
Member

@indexzero did a git rebase origin/master so it applies clean on the current master. Also updated the API that @blakmatrix added so it works with the new internals.

All tests pass and it's merge-able so it should be good to go.

FYI: I did a force push to rewrite the history of it.

@indexzero indexzero merged commit e443169 into master Feb 11, 2013
@indexzero indexzero deleted the clouds branch February 11, 2013 19:25
@indexzero
Copy link
Member Author

@3rd-Eden Looks good. Will bump this as v0.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants