50 karma · joined October 6, 2015
The query logic take into consideration the tenants so, a big tenant (or misbehaving) can't block small ones.
The periodic job is executed every few second, but it's also enqueued when added new tasks to the db (unless it's already enqueued) or when the query logic detect that there is more jobs available, so the lag is minimal.
At the moment I am doing this with only one type of jobs, but I want to expand it to most of the jobs, and let the "query logic" balance the queues.
"Me meo" is a real expresión, but not so common, i like to say "me deshorino" like satirical expresión.
- if user != nil {
%strong The user exists
- }The main project is on Ruby on Rails, but I have a microservice on node just for the "readability". I also extracted another service that would need a lot of memory and run only occasionally.
Those microservices are only needed from time to time, and I call them from a background job, so I let them autoscale to 0 on Fly.
- https://consumebefore.jose.gr/ to keep track of when the food expires once opened
- https://markdowntable.jose.gr/ generates markdown tables with a link to edit the table
- https://mazes.jose.gr is a simple maze generator. It never got traction inside my family, so I didn't invest much time in adding features.
- https://bookmarklet.jose.gr/ a bookmarklet generator
- https://docmati.com/ I did this for a friend and tried to productize it without much success
- https://keepthis.site/ is just for me but open to everyone. It would be cool if it gets some traction, but I know there are several alternatives, and it lacks some basic features.
Everything is stored in the URL, actually I am just thinking I should add offline first support.
It is already functional with the snapshot system, full text search, data import and data export (based on sqlite, more info on the blog). I am already working in the reimport of the sqlite (I like the idea as dev and user of the product) and the web extension, which will allow automatic saving of new bookmarks and inject matching bookmarks on your searchs on main search engines (Google, Kagi, duckduckgo, etc).
The app is in ruby, I am using "URI::DEFAULT_PARSER.make_regexp(%w[http https])" for generating the regex validation, which generates this monstrosity: https://gist.github.com/ceritium/08b34277fd252a2fa7db1f16bec...
I didn't mind being pretty strict regarding the URL validation; I don't even care too much about the fact of allowing "https:testhello", but I don't like that Chrome, Safari, and maybe others are opening <a href="https:testhello"> link </a> as "https://keepthis.site/https:testhello" but Firefox opens it as a new URL without "https://keepthis.site" which is the behavior I would expect.
I am going to re-implement the validation with simpler rules. Many thanks for your feedback.
Yes, the validation checks if the protocol is http or https.
I suggest using SQLite instead of the typical XML or JSON because SQLite is ready to be queried and easy to generate.
On SQLite, you can even store attachments b64 encoded. It will make it bigger and slower, but not so slow as trying to read a JSON or XML with the attachments inlined.
I also miss some out of the box solutions like Devise (without using external services).
As some comments suggest, I will move the data from the query string to the URI fragment to avoid the length limitation.
What do I have to do to place the banner?
Would be nice a place inside the site to send you some feedback or questions.