Crazy, sad but ... would you use D for your own facebook or pinterest?
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jan 4 06:18:33 PST 2017
On Wednesday, 4 January 2017 at 07:08:25 UTC, aberba wrote:
> Did you implement some form of clustering (session, storage,
> caching)?
I cheated (well, some would say "made a reasonable decision not
to reinvent the wheel"): I ran two copies of the application and
both talked to the same database (which itself has a replication
feature for failover, so any one server could go down at a time
without breaking things, but two down at once would most likely
have been a problem). Session storage was done as a special case
of database setup.
The application itself didn't know and didn't need to know about
the server setup. We never hit a point where this was
problematic. If it took off to millions of users, perhaps things
would need to change, but it worked fine with our actual scale
(we made a modest profit for the years it stayed up, so I don't
consider it a failure per se, but as I said, the company
eventually pivoted).
More information about the Digitalmars-d
mailing list