Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Search - "wcf"
Biggest scaling challenge I've faced?
Around 2006~2007 the business was in double-digit growth thanks to the eCommerce boom and we were struggling to keep up with the demand.
Upper IT management being more hardware focused and always threw more hardware at the problem. At its worst, we had over 25 web servers (back then, those physical tall-rectangle boxes..no rack system yet) and corresponding SQL server for each (replicated from our main sql server)
Then business boomed again and projected the need for 40 servers (20 web servers, 20 sql servers) over the next 5 years. Hardware+software costs (they were going to have to tear down a wall in order to expand the server room) were going to be in the $$ millions.
Even though we were making money, the folks spending it didn't seem to care, but I knew this trajectory was not sustainable, so I started utilizing (this was 2007) WCF services and Microsoft's caching framework Velocity. Started out small, product lookup data (description, price, the simple stuff) and within a month, I was able to demonstrate the web site could scale with less than half of our current hardware infrastructure.
After many political battles (I've ranted about a few of those), the $$ won and even with the current load, we were able to scale back to 5 web servers and 2 sql servers. When the business increased in the double-digits again, and again...we were still the same hardware for almost 5 years. We only had to add another service server when the international side of the business started taking off.
Challenge wasn't the scaling issue, the challenge was dealing with individuals who resisted change.3
Developer came to our area to rant a bit about a problem he was having with Xamarin. A particular android device was receiving a java runtime error trying to de-serialize data from a WCF contract. What he found was not to use WCF and use WebAPI (or a simple REST service that sent back/forth JSON).
When he proposed changing the service (since the data transport didn’t really matter, he could plug the assembly into a WebAPI project in less than an hour), the dev manager shot down the idea pointing him to our service standard that explicitly stated no WebAPI (it’s in bold letters).
I showed him the date on the “standard”, which was 5 years ago. We have versioning on our sharepoint server, so I also him my proposal notes on the change request document (almost two years before that) stating we should stop using WCF in favor of REST based web standards. Dev manager at the time had wrote in his comment “Will never use REST. Enterprise developers prefer RPC.”
He just about fell over laughing when I showed him this gif.2
I'm an idiot. I freely admit this. I spent a solid 3 hours on a new endpoint in a WCF service, only to have it looked upon and told to fix it. I knew that the service I was calling didn't work like that. I did, I knew it. I didn't think about it while coding the endpoint, but I knew it. At least the changes only needed to happen in one file, and only took about 25 minutes with tests and all. But damn it, I knew better. I looked at my buddy, straight in the eye, and told him "Told you I was an idiot." He laughed, I laughed, the table laughed, we killed the table. It was a great time!1
I'm a backend (Java, Kotlin) developer and I mainly design & develop services and Android apps which consume these services.
My team in my current organization (I've been working here since past 2 years) just got merged with another team.
And now the new boss wants me to fix some fuck ups in their project which is written in C#, with some WCF and other stuff.
As this stuff is completely new for me, I asked for some time to get familiar with the environment. But the answer was a big NO.
As a result, "I've started looking out for a new job"
Fuckin management screws up everything!4
Worst exp. with manager/higher-up?
Too many to pick the worst, but here are a few:
Manager demoted me because he believed I would be a roadblock to his wet dream of re-writing all the business services in WCF
Manager spent years and wasted countless man hours retiring a single ASP.Net web service by converting the individual supporting assemblies into specific WCF services..
Manager once berated me for 'missing' time log entries
Manager scolded me for not fixing a 'bug' while praised another developer who re-wrote a reporting application due to a fixable hardware problem and deleting the source code files from source control.
Manager wanted to rewrite all our code in XML.
Manager wanted integration with a new phone system knowing the hardware+software did not exist yet ..
Manager wanted me to 'take the lead' to speed up a web site in a foreign country we didn't control.
*Releases software for State project comprising of a solution with 3 WinServices and 2 WCF Services*
*Literally 15 min after release*
Email from State: "Here is an updated wsdl schema that is going literally fuck up everything you have released, enjoy!"
Me: *starts convulsing*
"This is your last chance. After this, there is no turning back. You take the blue pill - the story ends, you wake up in your bed and believe whatever you want to believe. You take the red pill - you stay in Wonderland and I show you how deep the rabbit-hole goes."
Said to a new team member before they embarked on a journey of pain as I took them through a huge web app made with jQuery (think: 10K lines of DOM manipulation horror), WCF, and sadness.
Conversation yesterday (senior dev and the mgr)..
SeniorDev: "Yea, I told Ken when using the service, pass the JSON string and serialize to their object. JSON eliminates the data contract mismatch errors they keep running into."
Mgr: "That sounds really familiar. Didn't we do this before?"
SeniorDev: "Hmmm...no. I doubt anyone has done this before."
Me: "Yea, our business tier processor handled transactions via XML. It allowed the client and server to process business objects regardless of platform. Partners using Perl,
clients using Delphi, website using .aspx, and our SQLServer broker even used it."
Mgr: "Oh yea...why did we stop using it?"
Me: "WCF. Remember, the new dev manager at the time and his team broke up the business processor into individual WCF services."
Mgr: "Boy, that was a crap fest. We're still fighting bugs from the mobile devices. Can't wait until we migrate everything to REST."
SeniorDev: "Yea, that was such a -bleep-ing joke."
Me: "You were on Jake's team at the time. You were the primary developer in the re-write process saying passing strings around wasn't the way true object-oriented developers write code.
So it's OK now because the string is in JSON format or because using a JSON string your idea?"
SeniorDev turns around in his desk and puts his headphones back on.
That's right you lying SOB...I remember exactly the level of personal attacks you spewed on me and other developers behind our backs for using XML as the message format.
Keep your fat ass in your seat and shut the hell up.3
Management directed a 2-month project including 5 developers, 3 DBAs, plus Q&A to replace a SOAP service that retrieved data from a single table. End result, project lasted 9+ months, 5 spectacular failed 3:00AM deployments, and a WCF service that retrieved data from a single table. Justification? Management wanted to eliminate SOAP, because SOAP uses XML and XML is slow. Thank goodness no one opened up Fiddler to see how WCF communicates.3
Worst architecture I've seen?
The worst (working here) follow the academic pattern of trying to be perfect when the only measure of 'perfect' should be the user saying "Thank you" or one that no one knows about (the 'it just works' architectural pattern).
A senior developer with a masters degree in software engineering developed a class/object architecture for representing an Invoice in our system. Took almost 3 months to come up with ..
- Contained over 50 interfaces (IInvoice, IOrder, IProduct, etc. mostly just data bags)
- Abstract classes that implemented the interfaces
- Concrete classes that injected behavior via the abstract classes (constructors, Copy methods, converter functions, etc)
- Various data access (SQL server/WCF services) factories
During code reviews I kept saying this design was too complex and too brittle for the changes everyone knew were coming. The web team that would ultimately be using the framework had, at best, vague requirements. Because he had a masters degree, he knew best.
He was proud of nearly perfect academic design (almost 100% test code coverage, very nice class diagrams, lines and boxes, auto-generated documentation, etc), until the DBAs changed table relationships (1:1 turned into 1:M and M:M), field names, etc, and users changed business requirements (ex. concept of an invoice fee changed the total amount due calculation, which broke nearly everything).
That change caused a ripple affect that resulted in a major delay in the web site feature release.
By the time the developer fixed all the issues, the web team wrote their framework and hit the database directly (Dapper+simple DTOs) and his library was never used.1
A few years ago, i had a task to implement a webservice of an insurance-company into our .NET Development.
The security requirements of this insurance-company webservice were top notch.
As a client you had to build a request that used a negotiated certificate, canonical header structures, security timestamp, a secret token in header, ...
To configure all this stuff via web.config WCF was pure pain in the ass.
After many phonecalls and emails, i finally managed to meet all security requirements to send a valid request.
First, i didn't recognized my breakthrough, because my client still had thrown exceptions while calling the insurance-webservice.
Why was that?
The exception told me on the most possible gentle way, that .Net isn't able to process an unsecured response, when there was a secured request before.
So there was top notch security for requesting, but dumbass unsecured responding with all the precious customer information.
I even had to raise the. Net Version of our. Net client, because i wasn't able to configure that it is allowed to process an unsecured response after using a secured request.
Just realised I have not seen some regular users on devrant for a good amount them. Listing them now :-
linuxxx (Last action 75 days ago( a ++))
SortOfTested(Last action 51 days ago(a comment))
Linux(Last action 50 days ago(a ++))
This list might not be accurate3
What would you use for building the baclend of a moderately complex web application that probably will have a small userbase?
Ruby on Rails
If what you would like to use something else that is not listed feel free to tell about it in the comments19
Ordered to implement Old functionality in New system, not allowed to fix it, refactor or change the underlaying mess.
Wrap old system in a wcf, hardcoded some values, done.
3 weeks estimated so I feel ahead and got more time to look for a New job.
Today I spent 9 hours trying to resolve an issue with .net core integration testing a project with soap services created using a third party soap library since .net core doesn't support soap anymore. And WCF is before my time.
The tests run in-process so that we can override services like the database, file storage, basically io settings but not code.
This morning I write the first test by creating a connected service reference to generate a service client. That way I don't need to worry about generating soap messages and keeping them in sync with the code.
I sent my first request and... Can't find endpoint.
3 hours later I learn via fiddler that a real request is being made. It's not using the virtual in-process server and http client, it's sending an actual network request that fiddler picks up, and of course that needs a real server accepting requests... Which I don't have.
So I start on MSDN. Please God help me. Nope. Nothing. Makes sense since soap is dead on .net core.
Now what? Nothing on the internet because above. Nothing in the third party soap library. Nothing. At this point I question of I have hit my wall as a developer.
Another 4 hours later I have reverse engineered the Microsoft code on GitHub and figured out that I am fucked. It's so hard to understand.
2 more hours later I have figured out a solution. It's pure filth..I hide it away in another tooling project and move all the filth to internal classes :D the equivalent of tidying your room as a kid by shoving it all under the bed. But fuck it.
My soap tests now use the correct http client with the virtual server. I am a magician.4
WCF doesn't like me adding to lists...
I have to make an uno game that supports multiplayer with WCF for school...
I have a player class that has a list of card classes.
I have a function called dealHand, it adds Cards to the hand list...
I also have a callback function for updating my wpf gui...
For whatever reason if when the gui calls dealhand and I try to use myList.add(new Card()) then the updategui function in my wpf client doesn't fire...
But if I take a seperate method called makeHand which returns a list of cards, and just do myList = makeHand() then that works fine...
Never been so baffled/cursed so much at code before... Is there something about Lists that WCF doesn't like? Seriously... was weird...
Hopefully that was somewhat coherent...4
Me: Why can't we use WCF according to standards (even though my team has been using it anyway?
Him: Because we could not figure out how to implement it. o_O
Help me please!
What the actual fuck is MSDN doing? I'm struggling for a whole goddamn month to make a WCF service used for only authenticating users. MSDN has around 4 different tutorials on this, from which one has a project to download, but the fucking link is not working, another one lacks basic information about the problem, and the rest of them are just a mess of links to solutions working when you are using a ASP web page. In the end, I'll probably find a single unmentioned issue, and it will work, but seriously, why the flaming fuck would you put solutions so broken, that even when copy pasting it it doesn't work at all?
Thank you theabbie for giving your location on your devrant profile. Some devranter might be able yto meet you though it will certainly be mot me unless that is a joke. Inputting the location writen in the brackets gives a location somehwere is navi mumbai23
What is your wishlist for things that need to die or change next year. Mine is :-
1. Games that use peer to peer and have servers for data. Please buy servers on aws or any good cloud service.
2. ISP's that block all incoming connections for security5
Sent a CV for a full-stack C# role. The CV is mainly a mix of working in ASMX/WCF, SQL, SSRS, SSIS, Distributed transaction architectures then with about 40% ASP.NET focusing on server side but also with some client side technologies and that I sometimes use Illustrator for creating/manipulating SVGs.
Was told I am too "front-end"2
I work daily on a project, in which, rather than buy in a decent message bus a bunch of half interested, unqualified developers were tasked with hammering together an in-house solution. This monstrosity has around six layers of abstraction, separate objects per project and dynamically loading converters between the components. It's largely not unit testable, certainly not integration testable and has already wasted more money in developer time and Bugfixes than a half decent external solution would have cost.
Every time I have to change an object in one part, start the associated web/win service and do a "update service references" I die a little inside.
There are so many better ways but we'll never be able to change because "there's no time for that"
And all for some up front savings
s it just me that finds WCF cumberlicated? I'm having trouble to get my client up and running every time we set up some sort of new service solution at work. All these service references and classes that cannot be resolved just cause a meltdown in my head. GGGGGGGGGGGGGNNNNNNNNNNNNNNHHHHHHHHHHHH! *going mad*4
Me: I want to deploy a simple WCF Service in a Docker container on Windows Server....
Docker Whale: nah bro....
Me: but but but you have been working with Windows for about a year this should be a simple simple task
Docker Whale: here let me your IP address every time so you can't ping locally or guess what I'm going to next.
Is xamarin good for cross platform app development or should I use flutter. I am planning to make the app for windows too so xamarin seemed better as it is owned by microsoft and desktop support isntin alpha3
Nothing like changing state contract ws-security polices to make your eyes bleed and your brain melt with symmetric encryption binding in WCF services
So I have an assignment due in an hour, we need to make a basic game that implements multiplayer using WCF
I have wpf clients that connect to a service, they connect fine but for whatever reason my callback isn't firing to update the gui... the thing is though, it was firing earlier (mind you when it fired off I ended up getting null references)
I fixed the null references (turns out I wasn't serializing stuff that needed serializing) but now my updategui method just doesn't fire, period. zero exceptions are being thrown, zero errors are being given...
At this point I might just rewrite the whole thing until it breaks so I can figure out what broke it... Like trying to debug something with zero errors/exceptions being thrown is hard...
Duuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck off you bloody infamous basterds flattening their fat asses at Microsoft.
I wasted half of my dev day to configure my wcf rest-api to return an enumeration property as string instead of enum index as integer.
There is actually no out-of-the-box attribute option to trigger the unholy built-in json serializer to shit out the currently set enum value as a pile of characters clenched together into a string.
I could vomit of pure happiness.
I know about that StringEnumConverter that can be used in the JsonConvert Attribute.
Problem is, that this shit isn't triggered, no matter what I do, since the package from Newtonsoft isn't used by my wcf service as a standard serializer.
And there is no simple and stable way to replace the standard json serializer.
This question is a bit dumb
Why do browsers block asynchronous requests when you use local files from your computer3
Sorry for posting a non dev goal
1. Check every social media ultra often and the first thing in the morning. I was late or sometimes completely missed something because I did not check my social media. Today I missed school because study leve was kinda cancelled. But guess what did not check my social media for the announcement and checked it in rhe afternoon when school was long over. No nwed to check email because nearly nothing important comes there except my report card which is resent on whatsapp 4 times a year4
I have been told to brush up on my windows/.net web services stuff for an interview. Any recommendations?2
One of the great things about learning things from teachers rather than Youtube videos is getting their experiences and perspectives as part of the education. So what I'd (in bold as well) like to know is WHY THE FUCK THEY DON'T DO THAT???
So here's the thing, my class has two teachers. One for systems development and another for programming. We have also had two different teachers the last two semesters. This rant applies to all four of them.
For instance, a few weeks ago we had about patterns (for the second time) where our sysdev teacher presented some of them in a powerpoint that was pretty much just copy paste from a site called dofactory and this https://slideshare.net/HermanPeeren.... It looks like this:
Of course, she didn’t want to talk about implementation which was pretty annoying. But even more annoying was the fact that what we were told of her time in the industry with these patterns were “I used that and that is used” and not, you know, “when I worked for blank I used this in such a way”.
Our programming teacher(s) aren’t much different. In the past two weeks we’ve been shown WCF. That is all fine and dandy, but when I asked if anyone used it (as I had never seen an api look like http://localhost/Service1.svc/...) he couldn’t answer. He seemed to think that there were no other ways to do REST.
Overall I think the biggest problem with this education is the fact that there’s no “why”. During the WCF stuff there were an interface called “IService1” which he added methods and attributes to.
This question might make you lose a brain cell because of stupidity in the question. Read with caution
Is there a way to compile a game for Windows from Linux in Unreal engine? I did google some posts but the answer was either use a Virtual machine which will not be done or use the the theoretical method of using mingw but the forum posts state that it will be tricky business or use a windows machine. I have dual booted windows with linux on my machine.
However since the machine has a 512 gb ssd most of the storage space is devoted to unreal engine which takes 47 gigs in itself and have a lot of programs installed I have a usable 20 gigs left out of 145 gig partition. Windows has around 318 gigs of storage to it but I have 100 gigs free at most. So after installing the windows sdk, visual studio with extensions, unreal engine and some other stuff I don't have much space left for myself. I need that much space since I install a lot of games to my ssd. So now I cant load my bigger projects for playing on my windows. I could use my hdd which is mostly used for backups and 100+ gig stuff. Though the hdd's are of course far slower than ssd's which shouldn't be a problem however last time I used visual studio it ate more than 2 gigs of ram for a solution meaning that the compiler has very low memory for itself to actually compile so for any large files the hdd has more of a bottleneck.
Oh and I can't upgrade my ssd's or ram because I don't have enough money.
Thanks for the answers in advance5
Another newbie question
Is ruby on rails worth learning now and is it dead ? I am a bit of a newbie to backend. I did create a site for a friend a year or two ago with django but still it was pretty simple. My horrible code is available here :- https://github.com/akshaytolwani123...
Also is this course on coursera for free on audit decent for the basics https://coursera.org/learn/... or should I just use freecodecamp or similar.5
Debugging a WCF app and could for the love of it not get its main window up. Then I realized it was freaking Photoshop that placed itself on top of it. PS is great for editing images, but has useless management of windows and memory, at least on Windows, originally developed for Mac as it is.
I always try to make problems more ... interesting, fancy, challenging. As soon as it gets boring, my mind is wandering.
Like now, when I wrote like a gazillion stored procedures, connected them to the back end classes, connected them to the new WCF service methods, connected them to the front end ... That's when I try to do anything but work.1
What should i use for making a app which needs to learn on both android and windows and maybe ios. It is pretty simple. Mainly needs notification, network and file acccess, does not cost an arm and a leg, uses less than 1 gb of memory at a time and being able to be used as to make a backend is a plus. Being able to be used commercially is a plus too. Also please suggest somehing that does not have a steep learning curve3
Had to install .net 1.1 to try and get some shitty old db application to work. Still doesn't work, but it messed up all my wcf services. Fml. >_<3
Sorry if this has been been asked before and asking useless questions
What are your thoughts on the mac ec2 instances1
What are some good companies for consumer networking equipment. I need a unmanaged switch and might buy a router from them. There will be 7 cables run though it. I have heard praises for ubiquiti but mostly from U.S. youtubers and I live in India so service might defer. Being cheap is a plus point.3
Any tips to speed up wordpress site. I have googled and tried as many solutions I can except adding cdn. I have minified images, html, css and js. I have used caching on the server with litespeed cache. There are not many plugins on the site.
The plugins installed are elementor, litespeed, orbit fox, wp-optimize, updraft plus and wpforms lite. The site takes around 4 to 5 seconds to fully load. I am doing this for a releative(don't worry he is sane and I am doing pretty simple stuff for him which is simply not worth charging). I cannot use cloudflare cdn since they need nameserver access and the hosting service used is hostinger which have put a lot of dns records which I don't understand and don't wanna mess with unless it is the last option.12
I just realized I can right click on a wcf service/client web.config and edit the bindings etc. in a gui. This would have made my life so much easier for (*choosing not to share for how long as it is embarrasing*).
Yo anyone who uses hikvision, do they still use npapi requiring use of older browsers or a plugin or other software like iVMS1
Any good free resources for full stack web development. Also if a resource teaches mainly frontend but also teaches some backend it is a full stack web development resource in my eyes. I was looking at freecodecamp but it is a bit too vast for me. I am also looking at the cokplete intro to web development v2 course by Brian holt for free on frontend masters but it is 2 years old and has not been updated. Also it does not teach that much bakcend hust node and express.
Also another question is frontend masters good for web development. I did not find many threads about it. I got a discount for it which gives me a one year subscription for 195 dollars18
Sorry for asking this question again but I got no replies or releated replies.
Is app academy open good for learning fullstack web development for a newbie or somewhat new to web development. There are barely any reviews on the internet about it. I did kinda ask about them in one of my previous rants but was recommended fullstackopen by @100110111
. I started fullstackopen pretty recently. App academy seems good too but it is a 1000+ hours soo I wanted to know if I am learning anything useful there.
Also thanks @100110111 fullstackopen is pretty good5
Not exactly a rant but some annoyances
Whenever I copy paste code from kindle it does not space the code. Stack overflow says that kindle is using characters for space which are not present in UTF-8 which causes the issue and the find and replace option coes not work in vs code which the author is using. And if you copy from kindle whether you use the button or Ctrl + C it will add the book title and the author at the end. Who the fuck though this was a good idea.
Oh a table does not fit on the screen render whatever fits even if it is the top line of the table. This is probably not an issue and they cannot fix it and I shoild just deal with it.
The author introduces me to the language compiler and lists a command to what versions are available. I get an error which says the command is not found on windows. I dont find any solutions on google, so I go the next place and author says that he knows about it and shows a link to fix it and tells to folloe the instructions. But the link does not have any instructions and just has instructions to configure the compiler itself. The only releveant information was the path to the compiler which the author could have included there or said that was the only relevant information. The path was correct but I needed to install some stuff through Visual Studio2
I want to learn c# to build a mobile app with xamarin and a website with asp.net core. I have some programing experience and have build some meh apps. What should I use
Head First C#, 4th Edition
C# 9 and .NET 5 - Modern Cross-Platform Development - Fifth Edition
C# Fundamentals by Scott Allen on Pluralsight
C# 9 and .NET 5 - Modern Cross-Platform Development - Fifth Edition teaches what I want to learn but the Xamarin section seems a bit short. C# Fundamentals by Scott Allen on Pluralsight was recommended a lot to beginners online and I can always learn Xamarin from Microsoft Learn12
Should I write my app as a pwa or in electron. The app needs to be on mobile devices too but I wont mind rewriting the app for another platform since the app is pretty small. It only needs notifications, network access and basic read and write access to write some pretty small configs. Most of the code will be for the ui anyways1
Is huwaei insane for saying that 1 line of their harmonyos code can do 100 lines of android code. I watched this in a coldfusion video. Link :- https://youtube.com/watch/... , The line I mentioned is at 11:556
Has anyone here used app academy open. Is it good and does it teach useful and up to date stuff? I was thinking of doing it but there are barely any reviews online. There is a reddit thread about why it is handicapped but it is old and a user clarified it was misinformation. https://reddit.com/r/...
Their curriculum seems to be pretty good except that I will need to learn ruby on rails which I need to forget after the MERN stack part and that they teach docker compose instead of kubernetes
Should I go for freecodecamp or app academy open or some other free resource to learn full stack web development. Freecodecamp's explanations are starting to get over my head. App academy open seems great except they teach ruby on rails before teaching MERN stack and there are only three reviews on the internet I could find12
On devrant I sometimes see a good amount of posts saying angular is garbage but nearly none about react. Why is angular so hated.3
Does this course seem BS or am I just being paranoid
Hey Stepping stone Students!!
Here is an exciting opportunity to learn and get Placement to develop your skills and learn exciting courses.
Looking for an Internship opportunity * with Top Firms like *FILTERCOPY, HP, etc to go along with college?
Then we are looking for you!
Choose from the various exciting and enriching courses like Artificial intelligence, Android app development, Web development, Ethical hacking, Python , Java etc!!
-Company comes for the placements in our College
-Get a chance to earn A Certificate recognized from incubation centre of NSRCEL an IIM Bangalore incubated company
-A Guaranteed Internship Opportunity!
-A Live Projects
And yeah it's only for a limited time!
So go on and register for your favourite course in the link below:http://bit.ly/CERTIFIEDCOURSE
And contact Lakshita Chandaliya at 7020036797 for more details.
It was shared in my school group by a teacher so chances of this being BS are pretty low but I have a bad feeling about this one5