Not especially a Clojure question, though my app is in Clojure, so I have 
all the tools of the JVM to work with. 

Suppose I release a small Clojure app that people should run on the 
servers, and it releases some data over some port. Let's say port 40000. 
The idea is that I want this data from them, and so I'm trying to make it 
easy for them to publish this data. I release this app as an open source, 
and I hope people will run in on their servers. I assume these people will 
be running all kinds of apps on their servers: PHP apps, Rails apps, NodeJS 
apps, Java apps, WordPress, Django, etc. 

What's the easiest way to let those apps ping my app? I don't want to 
assume port 80 because I assume they already have some app using port 80. 
And if we are talking about a typical WordPress developer, they might lack 
the skill to know how to establish a reverse proxy. So I thought perhaps 
the easiest thing would be to listen on a file socket? Because I think even 
a beginner PHP programmer would know how to write data to a file socket? 
There are lots of examples of 10 lines snippets teaching them how to do it. 

I could also ask them to simply send a HTTP request to my server, though 
I'm wondering if there is anything I can do that would be even easier and 
more automatic than that. I suppose I could write an app that watches their 
log files, though that would mean keeping in mind the different formats of 
Rails logs versus Apache logs, and knowing where the crucial data would 
appear. And even Apache and Nginix logs can be configured to show more or 
less data on different servers. 

But I am just guessing. Does anyone have a thought about this?  I'm trying 
to think of the most automatic way to get data about certain activities 
that happen on their server, which they may wish to advertise. 

I might just go with a traditional "they should ping my API" but if I could 
think of something even more automatic, that would be ideal. Watching their 
log files would be the easiest thing, though the logs are not 100% 
standard. 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to