dracoblue.net

Hanging subrequests in Nginx

While I was working on lua-native-ssi-nginx (an opinionated lua replacement of nginx's ssi directive), I ran into the following issue:

The proxy_pass requests seemed to hang (or lock) as soon as the response was too big.

Even with nginx in debug mode, I could only see this in the error.log:

2016/10/08 10:47:19 [debug] 31895#0: *1337 http upstream request: "/sub-request?"
2016/10/08 10:47:19 [debug] 31895#0: *1337 http upstream dummy handler
2016/10/08 10:47:19 [debug] 31895#0: *1337 http upstream request: "/sub-request?"
2016/10/08 10:47:19 [debug] 31895#0: *1337 http upstream dummy handler
2016/10/08 10:47:19 [debug] 31895#0: *1337 http upstream request: "/sub-request?"
Continue reading ...

In lua, nginx, open source by DracoBlue @ 09 Oct 2016 | 241 Words

Review: Building Microservices

TL;DR: Recommended?
Awesome! ⭐️⭐️⭐️⭐️⭐️
Buy at Amazon:

When Sam Newman's book (280 pages) on microservices was released in the first month of january 2015, I was already reading a preview edition for some weeks. Having the book as paper version next to my desk, let's me open it once in a while to find a good example for a concept or a piece of software for my microservices day work.

The book is not about indepth knowledge about every part of hosting lots of little connected systems, but gives such an awesome overview about all parts, that I can encourage everybody maintaining or creating systems and libraries to read this book!

Continue reading ...

In consul, java, microservices, nodejs, read, soa, spring-boot by DracoBlue @ 10 Jun 2016 | 547 Words

Review: Spring Data JPA Reference

TL;DR: Recommended?
Really good read! ⭐️⭐️⭐️⭐️⭐️️
Read Online as:

After reading the spring boot reference in november, I wanted to know more in depth knowledge of spring data. That's why I read the official spring data jpa reference.

Something new to me is, that you can use _ in spring data repository interface names to give a hint to the query builder. So:

List<Person> findByAddress_ZipCode(ZipCode zipCode);
// resolves to address.zipCode or address.zip.code
Continue reading ...

In java, read, spring, spring-boot, spring-data by DracoBlue @ 31 Mar 2016 | 243 Words

Fix DOM Exception 5 invalid character with atob

When I was developing on http://web.twtxt.org I ran into this mysterious javascript error:

InvalidCharacterError: DOM Exception 5: An invalid or illegal character was specified, such as in an XML name.
atobbundle.js:245
(anonyme Funktion)bundle.js:245
emitbundle.js:1119
handlebundle.js:1673
onreadystatechangebundle.js:1465

The source code in question took a base64 encoded content of the github api and converted it with window.atob into an utf8 string.

This worked well except for safari on iOS!

Continue reading ...

In ios, javascript, safari by DracoBlue @ 21 Mar 2016 | 220 Words

Local Elasticsearch Cluster Status = RED

If you want to check the status of your local single node elasticsearch development server, you can query the cluster stats endpoint at maybe http://localhost:9200/_cluster/health?level=indices.

{
  "cluster_name": "erstmal",
  "status": "red",
  "number_of_nodes": 1,
  "assigned_shards": 4,
  "unassigned_shards": 126
}

If this status shows "red" and you can see lots of unassigned_shards here, you have a problem.

Continue reading ...

In elasticsearch, open source by DracoBlue @ 01 Feb 2016 | 268 Words

Page 1 - Page 2

Recent Files

Advertisement

Recent Dev-Articles

Read recently

About

Blogroll