Closed Bug 1096552 Opened 10 years ago Closed 10 years ago

RIP middleware. Long live dataservice.

Categories

(Socorro :: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: selenamarie, Assigned: selenamarie)

References

Details

I propose we do away with "middleware" and create "dataservice". 

Henceforth it shall be used for making data from our various external resources available via a web api.

DataserviceApp is :lars' refactoring of the middleware to be configman-ized utility that standardizes an interface to external resources containing interesting data. The next step (possibly also in this bug.. but maybe broken out) in the evolution is to make the dataservice accessible via the Django API (webapp-django/crashstats/api).

I am deconstructing the complete patch proposed early last summer and breaking it into easily reviewable chunks.
Yay for this! Lars had a really promising prototype which I never had a chance to actually take for a spin because I don't think it ever actually worked but it did look very promising.

I would like to suggest though that we do not kill the middleware server yet. We have built the webapp models so that we can replace one of them at a time. That should make for a "softer landing". 

E.g. the "CurrentProducts.get" might do a `from socorro.external.postgresl.something import Something` instead but we leave "SuperSearch.get" to continue to do a HTTP GET to the middleware service.
(In reply to Peter Bengtsson [:peterbe] from comment #1)
> Yay for this! Lars had a really promising prototype which I never had a
> chance to actually take for a spin because I don't think it ever actually
> worked but it did look very promising.

:) Thanks!  His code is pretty great. I'm making some minor modifications and am already able to start up the new app.

> I would like to suggest though that we do not kill the middleware server
> yet. We have built the webapp models so that we can replace one of them at a
> time. That should make for a "softer landing". 

*nod* My thinking is that we deploy DataserviceApp and provide them side-by-side for a transition.
Blocks: 1097988
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111
Assignee: nobody → sdeckelmann
You need to log in before you can comment on or make changes to this bug.