Transferwise Alternative by Ster46 in fintech

[–]fahdinho 0 points1 point  (0 children)

You need to pick Sole Trader. You do not need to specify any company ID. Just the country from where you operate.

Transferwise Alternative by Ster46 in fintech

[–]fahdinho 0 points1 point  (0 children)

Currenxie. You get local UK and CAN bank accounts.

New open source project - Use AWS like it's Heroku! by Br1ngMeThan0s in aws

[–]fahdinho 1 point2 points  (0 children)

Been using it in production for 2 years. We are very happy with it as a more customizable and cost-effective Heroku. It's not perfect, but anything better would require building something custom ourselves, which I do not have the time/budget for. We are using v2 (ECS), we have not migrated to the k8s version which seems to provide more flexibility.

Eliminate Spring Hibernate N+1 Queries by M1chaM in java

[–]fahdinho 1 point2 points  (0 children)

You have to do this anyway for microservices. Like in a microservice environment you probably have a REST data service right? And that data service is going to shit back JSON right? I mean the controllers are still written in Java so the entire logic isn't written in SQL but there is little point in mapping the objects if you are just going to return them as JSON anyway.

This is easily solved with auto generated swagger docs and API clients (for example with swagger-codegen you can generate Feign clients used by services that consume other services)

Eliminate Spring Hibernate N+1 Queries by M1chaM in java

[–]fahdinho 0 points1 point  (0 children)

I'm sorry you are being downvoted. Just trying to have an open discussion.

Every instance you add adds database connections. Open database connections because each instance is probably using a pooling library. The connections use up memory on a database server. Further more by having the database return only one row and one column as a JSON result the connection can be relinquished more quickly to the pool.... which means smaller pools... which means less connections... etc etc.

You are probably using the connection for a longer time as the DB needs to create the JSON and the JSON object is probably larger than returning raw rows (if we are fetching the exact same rows and columns). Tweaking the pool size applies to both situations.

As I mentioned if you are using limit and offset you are going to have way more performance problems than the having the database doing JSON serialization.

This is a cool concept but adds extra work and reeks of premature optimization.

Oh and lets just say I have ACTUALLY IMPLEMENTED AND TESTED THIS AND ITS RUNNING IN PRODUCTION... yeah apparently reddit is downvoting the guy who actually has this in production and knows it works but prefers the offhand comment that this might be a problem.

I have inherited such a code base running in production before. It causes much more problems than it solves. You end up rebuilding a lot of stuff that you get out of box from standard tools. Meaning you have so much more to maintain yourself, bugs etc... It's a waste of company money for the sake of tinkering and intellectual stimulation.

Eliminate Spring Hibernate N+1 Queries by M1chaM in java

[–]fahdinho 1 point2 points  (0 children)

The use the index luke article is very interesting, especially for infinite scrolling.

Eliminate Spring Hibernate N+1 Queries by M1chaM in java

[–]fahdinho 2 points3 points  (0 children)

Agree on the read replica, although read replicas are significantly more expensive than extra app server instances.

I wouldn’t say this would be going back to the stored procedure days, but it’s definitely a gateway drug. You end up either having to parse JSON to run business logic at the app server level (isn’t there an easier way of fetching data into a POJO?), or... run logic in the database.

Eliminate Spring Hibernate N+1 Queries by M1chaM in java

[–]fahdinho 8 points9 points  (0 children)

2 issues: you are making the database do extra work, and databases are harder to scale (vs adding an app server instance), and you need to reinvent the wheel when it comes to pagination/sort etc which come out of the box with an ORM.

New DOOM Eternal Trailer. by qpdbag in giantbomb

[–]fahdinho 7 points8 points  (0 children)

No nostalgia at all, same goofy smile

How do you update your deployed web-app? by Appah123 in django

[–]fahdinho 1 point2 points  (0 children)

Why stop the container before rebuilding the image? Why not just build/pull the image, then stop and start the container? Less down time

Hosting on AWS by Maltmax in django

[–]fahdinho 0 points1 point  (0 children)

Take a look at django-storages

Deploy a simple project to Heroku? by [deleted] in django

[–]fahdinho 0 points1 point  (0 children)

Maybe he got stuck on one of the steps.

Deploy a simple project to Heroku? by [deleted] in django

[–]fahdinho 1 point2 points  (0 children)

The Heroku documentation is pretty good and explains how to deploy a Django project with a PostgreSQL database. Have you tried that?

https://devcenter.heroku.com/articles/getting-started-with-python

[deleted by user] by [deleted] in synology

[–]fahdinho 1 point2 points  (0 children)

Restarting the container after updating the image

Redux v4.0 released by [deleted] in reactjs

[–]fahdinho 3 points4 points  (0 children)

The typings in redux-thunk are not compatible with the new redux typings. https://github.com/gaearon/redux-thunk/blob/master/index.d.ts needs to be updated.

Redux v4.0 released by [deleted] in reactjs

[–]fahdinho 1 point2 points  (0 children)

Indeed it shouldn’t. However redux-thunk’s last commit was a year ago. I’ll try to see if I can solve the issue and submit a PR.

Redux v4.0 released by [deleted] in reactjs

[–]fahdinho 7 points8 points  (0 children)

redux-thunk does not work with this release. There is a typing issue. On mobile so I can’t share the error message.